Skip to content

Commit 498595a

Browse files
author
Ben Skeggs
committed
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 <[email protected]>
1 parent 705d9d0 commit 498595a

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
@@ -590,6 +590,7 @@ nouveau_fbcon_init(struct drm_device *dev)
590590
drm_fb_helper_fini(&fbcon->helper);
591591
free:
592592
kfree(fbcon);
593+
drm->fbcon = NULL;
593594
return ret;
594595
}
595596

0 commit comments

Comments
 (0)