From 8d3cb7e472ceb31a28de3acc19176e3a2d2995b1 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sun, 14 Oct 2007 21:19:13 +1000 Subject: [PATCH] i915: fix vbl_swap allocation --- shared-core/i915_irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared-core/i915_irq.c b/shared-core/i915_irq.c index 7baa23c0..db18a895 100644 --- a/shared-core/i915_irq.c +++ b/shared-core/i915_irq.c @@ -691,7 +691,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");