1
0
Fork 0

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 <bskeggs@redhat.com>
zero-sugar-mainline-defconfig
Ben Skeggs 2020-07-24 17:01:39 +10:00
parent 705d9d0229
commit 498595abf5
1 changed files with 1 additions and 0 deletions

View File

@ -590,6 +590,7 @@ fini:
drm_fb_helper_fini(&fbcon->helper);
free:
kfree(fbcon);
drm->fbcon = NULL;
return ret;
}