Skip to content

Commit

Permalink
drm/nouveau/fbcon: fix module unload when fbcon init has failed for s…
Browse files Browse the repository at this point in the history
…ome reason

Stale pointer was tripping up the unload path.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Jul 24, 2020
1 parent 705d9d0 commit 498595a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/nouveau/nouveau_fbcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 498595a

Please sign in to comment.