diff options
| -rw-r--r-- | drivers/gpu/drm/nouveau/nv50_display.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) | |||
| 529 | } | 529 | } |
| 530 | 530 | ||
| 531 | ret = nv50_display_init(dev); | 531 | ret = nv50_display_init(dev); |
| 532 | if (ret) | 532 | if (ret) { |
| 533 | nv50_display_destroy(dev); | ||
| 533 | return ret; | 534 | return ret; |
| 535 | } | ||
| 534 | 536 | ||
| 535 | return 0; | 537 | return 0; |
| 536 | } | 538 | } |
