lkml.org 
[lkml]   [2017]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] drm/fb-helper: Fix potential NULL pointer dereference

Quoting Daniel Vetter <daniel@ffwll.ch>:

> On Tue, Dec 05, 2017 at 11:46:28AM -0600, Gustavo A. R. Silva wrote:
>> fb_helper is being dereferenced before it is null checked,
>> hence there is a potential null pointer dereference.
>>
>> Fix this by moving the pointer dereference after fb_helper
>> has been null checked.
>>
>> This issue was detected with the help of Coccinelle.
>>
>> Fixes: c777990fb45b ("drm/fb-helper: Handle function NULL argument")
>> Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
>
> Oops. Applied to drm-misc-next, thanks for your patch.
> -Daniel
>

Glad to help. :)

Thanks
--
Gustavo A. R. Silva




\
 
 \ /
  Last update: 2017-12-06 18:07    [W:0.071 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site