[PATCH v3] drm: panel-lvds: Potential Oops in probe error handling
Sam Ravnborg
sam at ravnborg.org
Sat Sep 21 18:55:41 UTC 2019
Hi Dan.
On Wed, Sep 11, 2019 at 01:49:28PM +0300, Dan Carpenter wrote:
> The "lvds->backlight" pointer could be NULL in situations where
> of_parse_phandle() returns NULL. This code is cleaner if we use the
> managed devm_of_find_backlight() so the clean up is automatic.
>
> Fixes: 7c9dff5bd643 ("drm: panels: Add LVDS panel driver")
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>
> ---
> v3: Use devm_of_find_backlight(). This version is quite a bit more
> ambitious, and I haven't tested it so please review carefully.
Looks good.
Applied and pushed to drm-misc-next.
It will hit upstream not at this but next merge window.
Sam
More information about the dri-devel
mailing list