[PATCH] drm/fb-helper: Fix drm_fb_helper_hotplug_event() NULL ptr argument

Noralf Trønnes noralf at tronnes.org
Thu May 16 10:09:06 UTC 2019



Den 15.05.2019 15.40, skrev Daniel Vetter:
> On Wed, May 15, 2019 at 03:29:25PM +0200, Noralf Trønnes wrote:
>> 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 at intel.com>
>> Reported-by: Dan Carpenter <dan.carpenter at oracle.com>
>> Signed-off-by: Noralf Trønnes <noralf at tronnes.org>

> Reviewed-by: Daniel Vetter <daniel.vetter at ffwll.ch>
> 

Thanks Dan and Daniel, applied to drm-misc-next.

Noralf.


More information about the dri-devel mailing list