mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-11 23:50:25 +00: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);
|
ret = nv50_display_init(dev);
|
||||||
if (ret)
|
if (ret) {
|
||||||
|
nv50_display_destroy(dev);
|
||||||
return ret;
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user