From: Ben Skeggs Date: Fri, 24 Jul 2020 07:01:39 +0000 (+1000) Subject: drm/nouveau/fbcon: fix module unload when fbcon init has failed for some reason X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=498595abf5bd51f0ae074cec565d888778ea558f;p=linux.git drm/nouveau/fbcon: fix module unload when fbcon init has failed for some reason Stale pointer was tripping up the unload path. Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nouveau_fbcon.c b/drivers/gpu/drm/nouveau/nouveau_fbcon.c index 3d11b84d4cf9..843928ec059e 100644 --- a/drivers/gpu/drm/nouveau/nouveau_fbcon.c +++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.c @@ -590,6 +590,7 @@ fini: drm_fb_helper_fini(&fbcon->helper); free: kfree(fbcon); + drm->fbcon = NULL; return ret; }