Re: [PATCH] drm/fb: Fix pointer dereference before null check.

2017-08-03 Thread Daniel Vetter
On Wed, Aug 02, 2017 at 01:00:13PM -0500, David Lechner wrote: > fb_crtc is used before a null check, so move the use after the null check. > > This was just identified by inspection. I haven't actually observed a crash > here, so it is possible that the null check could be unnecessary. > > Signe

[PATCH] drm/fb: Fix pointer dereference before null check.

2017-08-02 Thread David Lechner
fb_crtc is used before a null check, so move the use after the null check. This was just identified by inspection. I haven't actually observed a crash here, so it is possible that the null check could be unnecessary. Signed-off-by: David Lechner --- drivers/gpu/drm/drm_fb_helper.c | 2 +- 1 fil