diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2020-07-24 17:01:39 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2020-07-24 18:33:14 +1000 |
commit | 498595abf5bd51f0ae074cec565d888778ea558f (patch) | |
tree | 500aeb3f0619ac6d944bc5a8a13fe41976a3e5c3 /drivers/gpu | |
parent | 705d9d022949e3cdae82d89db6a8fc773eb23dad (diff) | |
download | linux-498595abf5bd51f0ae074cec565d888778ea558f.tar.bz2 |
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_fbcon.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_fbcon.c b/drivers/gpu/drm/nouveau/nouveau_fbcon.c index 3d11b84d4cf9..843928ec059e 100644 --- a/drivers/gpu/drm/nouveau/nouveau_fbcon.c +++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.c @@ -590,6 +590,7 @@ fini: drm_fb_helper_fini(&fbcon->helper); free: kfree(fbcon); + drm->fbcon = NULL; return ret; } |