Skip to content

Commit 5955ccb

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 e0c47a5 commit 5955ccb

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
@@ -592,6 +592,7 @@ nouveau_fbcon_init(struct drm_device *dev)
592592
drm_fb_helper_fini(&fbcon->helper);
593593
free:
594594
kfree(fbcon);
595+
drm->fbcon = NULL;
595596
return ret;
596597
}
597598

0 commit comments

Comments
 (0)