i915: fix vbl swap allocation size.
authorDave Airlie <airlied@redhat.com>
Sun, 14 Oct 2007 11:21:30 +0000 (21:21 +1000)
committerDave Airlie <airlied@optimus.(none)>
Mon, 15 Oct 2007 00:42:27 +0000 (10:42 +1000)
Oops...

Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/i915_irq.c

index 380c3f38721850d74e40b020547af1632eac5ee4..a443f4a202e3889c1a52adc43ac1d3020a9351e9 100644 (file)
@@ -540,7 +540,7 @@ int i915_vblank_swap(struct drm_device *dev, void *data,
                return -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");