diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2019-09-11 13:49:28 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-27 14:51:20 +0100 |
commit | 888482cb8da0ae18e9e6af328be431e0bc76a95d (patch) | |
tree | f08c1f56b401219937af68cd157cf2891e88391a /Documentation | |
parent | 97a5c6b7ff2577042299b9db218899b8e22916d1 (diff) | |
download | linux-stable-888482cb8da0ae18e9e6af328be431e0bc76a95d.tar.gz linux-stable-888482cb8da0ae18e9e6af328be431e0bc76a95d.tar.bz2 linux-stable-888482cb8da0ae18e9e6af328be431e0bc76a95d.zip |
drm: panel-lvds: Potential Oops in probe error handling
[ Upstream commit fb2ee9bf084bcaeff1e5be100decc0eacb4af2d5 ]
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@oracle.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190911104928.GA15930@mwanda
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions