drm/nv50/pm: free state struct after setting clocks
authorBen Skeggs <bskeggs@redhat.com>
Fri, 28 Oct 2011 12:10:15 +0000 (22:10 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 21 Dec 2011 09:01:26 +0000 (19:01 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv50_pm.c

index bf9fd95c81c008693859f5d5f327aa618ff07f75..53b6c6c75744a31be6c7b01991c57474056e3823 100644 (file)
@@ -619,6 +619,7 @@ error:
        ret = -EBUSY;
 resume:
        nv_mask(dev, 0x002504, 0x00000001, 0x00000000);
+       kfree(info);
        return ret;
 }