]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
i915: fix vbl swap allocation size.
authorDave Airlie <airlied@linux.ie>
Tue, 16 Oct 2007 00:05:49 +0000 (01:05 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 16 Nov 2007 17:30:19 +0000 (09:30 -0800)
This is upstream as 54583bf4efda79388fc13163e35c016c8bc5de81

Oops...

Signed-off-by: Dave Airlie <airlied@linux.ie>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/drm/i915_irq.c

index bb8e9e9c820156e849cbd6ece7485de88767baff..94d638e1c4b1647c7989a06916bd5a5d2129b55f 100644 (file)
@@ -553,7 +553,7 @@ int i915_vblank_swap(DRM_IOCTL_ARGS)
                return DRM_ERR(EBUSY);
        }
 
-       vbl_swap = drm_calloc(1, sizeof(vbl_swap), DRM_MEM_DRIVER);
+       vbl_swap = drm_calloc(1, sizeof(*vbl_swap), DRM_MEM_DRIVER);
 
        if (!vbl_swap) {
                DRM_ERROR("Failed to allocate memory to queue swap\n");