From: Ben Skeggs Date: Thu, 25 Mar 2010 06:01:04 +0000 (+1000) Subject: drm/nv50: cleanup properly if PDISPLAY init fails X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a1663ed3412f4b94edcf30b271c9db3ace533605;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git drm/nv50: cleanup properly if PDISPLAY init fails Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c index bd99986a1146..fd00f4000f14 100644 --- a/drivers/gpu/drm/nouveau/nv50_display.c +++ b/drivers/gpu/drm/nouveau/nv50_display.c @@ -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; }