]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/nouveau/fbcon: fix module unload when fbcon init has failed for some reason
authorBen Skeggs <bskeggs@redhat.com>
Fri, 24 Jul 2020 07:01:39 +0000 (17:01 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 24 Jul 2020 08:33:14 +0000 (18:33 +1000)
Stale pointer was tripping up the unload path.

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

index 3d11b84d4cf9f8a1e333a1f90efd44d98543525e..843928ec059e016104be9ec81ef1426a178ac4a4 100644 (file)
@@ -590,6 +590,7 @@ fini:
        drm_fb_helper_fini(&fbcon->helper);
 free:
        kfree(fbcon);
+       drm->fbcon = NULL;
        return ret;
 }