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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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@xxxxxxxxx>
>> Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
>> Signed-off-by: Noralf Trønnes <noralf@xxxxxxxxxxx>

> Reviewed-by: Daniel Vetter <daniel.vetter@xxxxxxxx>
> 

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

Noralf.
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux