1
0
Fork 0

drm/nouveau/fbcon: fix module unload when fbcon init has failed for some reason

[ Upstream commit 498595abf5 ]

Stale pointer was tripping up the unload path.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
5.4-rM2-2.2.x-imx-squashed
Ben Skeggs 2020-07-24 17:01:39 +10:00 committed by Greg Kroah-Hartman
parent e0c47a51fc
commit 5955ccb5a4
1 changed files with 1 additions and 0 deletions

View File

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