From 7c63ae4527355d8f52dc285a9163a5947a61572e Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sun, 14 Oct 2007 21:21:30 +1000 Subject: [PATCH] i915: fix vbl swap allocation size. Oops... Signed-off-by: Dave Airlie --- drivers/char/drm/i915_irq.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/char/drm/i915_irq.c b/drivers/char/drm/i915_irq.c index bb8e9e9..94d638e 100644 --- a/drivers/char/drm/i915_irq.c +++ b/drivers/char/drm/i915_irq.c @@ -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"); -- 1.5.2.4