Skip to content

Commit 705a601

Browse files
Ben Skeggsgregkh
authored andcommitted
drm/nouveau/fbcon: fix module unload when fbcon init has failed for some reason
[ Upstream commit 498595a ] Stale pointer was tripping up the unload path. Signed-off-by: Ben Skeggs <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent edd9097 commit 705a601

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/nouveau/nouveau_fbcon.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ nouveau_fbcon_init(struct drm_device *dev)
584584
drm_fb_helper_fini(&fbcon->helper);
585585
free:
586586
kfree(fbcon);
587+
drm->fbcon = NULL;
587588
return ret;
588589
}
589590

0 commit comments

Comments
 (0)