mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-27 05:40:56 +07:00
drm/nv50: cleanup properly if PDISPLAY init fails
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
78bb35129e
commit
a1663ed341
@ -529,8 +529,10 @@ int nv50_display_create(struct drm_device *dev)
|
||||
}
|
||||
|
||||
ret = nv50_display_init(dev);
|
||||
if (ret)
|
||||
if (ret) {
|
||||
nv50_display_destroy(dev);
|
||||
return ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user