Skip to content

Commit

Permalink
drm/nv50: cleanup properly if PDISPLAY init fails
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Apr 9, 2010
1 parent 78bb351 commit a1663ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/gpu/drm/nouveau/nv50_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a1663ed

Please sign in to comment.