]> git.baikalelectronics.ru Git - kernel.git/commit
drm/fb: Fix pointer dereference before null check.
authorDavid Lechner <david@lechnology.com>
Wed, 2 Aug 2017 18:00:13 +0000 (13:00 -0500)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 Aug 2017 10:12:15 +0000 (12:12 +0200)
commit1339ffa15805aa01eafe2a1924761e264b270e4b
treeb6b382d485d94d1694beae39a0a7228368863925
parent095307c740f031e96dff5aae3b80333c867bc3de
drm/fb: Fix pointer dereference before null check.

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 <david@lechnology.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1501696813-8807-1-git-send-email-david@lechnology.com
drivers/gpu/drm/drm_fb_helper.c