diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv20_graph.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv20_graph.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nv20_graph.c b/drivers/gpu/drm/nouveau/nv20_graph.c index affc7d7dd029..f8736270f62f 100644 --- a/drivers/gpu/drm/nouveau/nv20_graph.c +++ b/drivers/gpu/drm/nouveau/nv20_graph.c | |||
@@ -753,6 +753,7 @@ nv20_graph_create(struct drm_device *dev) | |||
753 | break; | 753 | break; |
754 | default: | 754 | default: |
755 | NV_ERROR(dev, "PGRAPH: unknown chipset\n"); | 755 | NV_ERROR(dev, "PGRAPH: unknown chipset\n"); |
756 | kfree(pgraph); | ||
756 | return 0; | 757 | return 0; |
757 | } | 758 | } |
758 | } else { | 759 | } else { |
@@ -774,6 +775,7 @@ nv20_graph_create(struct drm_device *dev) | |||
774 | break; | 775 | break; |
775 | default: | 776 | default: |
776 | NV_ERROR(dev, "PGRAPH: unknown chipset\n"); | 777 | NV_ERROR(dev, "PGRAPH: unknown chipset\n"); |
778 | kfree(pgraph); | ||
777 | return 0; | 779 | return 0; |
778 | } | 780 | } |
779 | } | 781 | } |