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

2017-12-07 Thread Daniel Vetter
On Wed, Dec 06, 2017 at 04:07:49PM +0300, Dan Carpenter wrote: > We recently modified drm_fb_helper_single_add_all_connectors() to allow > NULL "fb_helper" pointers. But the problem is that it gets > dereferenced before we checked for NULL. > > Fixes: c777990fb45b ("drm/fb-helper: Handle functio

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

2017-12-06 Thread Dan Carpenter
We recently modified drm_fb_helper_single_add_all_connectors() to allow NULL "fb_helper" pointers. But the problem is that it gets dereferenced before we checked for NULL. Fixes: c777990fb45b ("drm/fb-helper: Handle function NULL argument") Signed-off-by: Dan Carpenter diff --git a/drivers/gpu