Commit 498595ab authored by Ben Skeggs's avatar Ben Skeggs

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: default avatarBen Skeggs <bskeggs@redhat.com>
parent 705d9d02
......@@ -590,6 +590,7 @@ nouveau_fbcon_init(struct drm_device *dev)
drm_fb_helper_fini(&fbcon->helper);
free:
kfree(fbcon);
drm->fbcon = NULL;
return ret;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment