]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/fbcon: fix NULL pointer access in nouveau_fbcon_destroy
authorKarol Herbst <kherbst@redhat.com>
Mon, 6 Nov 2017 15:20:33 +0000 (16:20 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 19 Dec 2017 00:16:37 +0000 (10:16 +1000)
commiteb61e4a784fb14f2a7d286dccfdd651ccbd80e9a
tree7f772fba062804dd5de35cc332df8d282ad3f6b1
parentff3bf24be0c394391187cdcb33a4dd1719136663
drm/nouveau/fbcon: fix NULL pointer access in nouveau_fbcon_destroy

When the fbcon object is initialized, but nouveau_fbcon_create is not
called, we run into a NULL pointer access within nouveau_fbcon_create when
unloading nouveau.

The call to drm_fb_helper_funcs.fb_probe is deferred until there is a
display for real since 4.14, that's why fbcon->helper.fb is still not set.

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_fbcon.c