diff options
author | Noralf Trønnes <noralf@tronnes.org> | 2019-05-15 15:29:25 +0200 |
---|---|---|
committer | Noralf Trønnes <noralf@tronnes.org> | 2019-05-16 12:01:46 +0200 |
commit | 0586576950d5dd34d70cca7adba85e5fb08664f7 (patch) | |
tree | ed13dc0fc3a3e2c1d5008a82aea1beb1b313670b /Documentation | |
parent | drm/sun4i: sun6i_mipi_dsi: Support DSI GENERIC_SHORT_WRITE_2 transfer (diff) | |
download | linux-0586576950d5dd34d70cca7adba85e5fb08664f7.tar.xz linux-0586576950d5dd34d70cca7adba85e5fb08664f7.zip |
drm/fb-helper: Fix drm_fb_helper_hotplug_event() NULL ptr argument
drm_fb_helper_hotplug_event() should tolerate the fb_helper argument being
NULL. Commit 03a9606e7fee ("drm/fb-helper: Avoid race with DRM userspace")
introduced a fb_helper dereference before the NULL check.
Fixup by moving the dereference after the NULL check.
Fixes: 03a9606e7fee ("drm/fb-helper: Avoid race with DRM userspace")
Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190515132925.48867-1-noralf@tronnes.org
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions