Re: [PATCH] drm/fb-helper: Fix potential NULL pointer dereference

2017-12-07 Thread Gustavo A. R. Silva
Quoting Daniel Vetter : 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

Re: [PATCH] drm/fb-helper: Fix potential NULL pointer dereference

2017-12-06 Thread Daniel Vetter
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

[PATCH] drm/fb-helper: Fix potential NULL pointer dereference

2017-12-06 Thread Gustavo A. R. Silva
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