Skip to content
Commit 92e266c3 authored by Dan Carpenter's avatar Dan Carpenter Committed by Paul Gortmaker
Browse files

drm: panel-lvds: Potential Oops in probe error handling



commit fb2ee9bf upstream.

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: 7c9dff5b ("drm: panels: Add LVDS panel driver")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190911104928.GA15930@mwanda


Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 7544eec4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment