提交 a1663ed3 编写于 作者: B Ben Skeggs

drm/nv50: cleanup properly if PDISPLAY init fails

Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 78bb3512
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册