Commit a1663ed3 authored by Ben Skeggs's avatar Ben Skeggs

drm/nv50: cleanup properly if PDISPLAY init fails

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 78bb3512
...@@ -529,8 +529,10 @@ int nv50_display_create(struct drm_device *dev) ...@@ -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;
} }
......
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