aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2007-10-14 21:21:30 +1000
committerDave Airlie <airlied@optimus.(none)>2007-10-15 10:42:27 +1000
commit54583bf4efda79388fc13163e35c016c8bc5de81 (patch)
tree0be22b3c7c90fe821be33434e1e0b5a62c19a46c /drivers/char/drm
parentc153f45f9b7e30289157bba3ff5682291df16caa (diff)
downloadkernel_goldelico_gta04-54583bf4efda79388fc13163e35c016c8bc5de81.zip
kernel_goldelico_gta04-54583bf4efda79388fc13163e35c016c8bc5de81.tar.gz
kernel_goldelico_gta04-54583bf4efda79388fc13163e35c016c8bc5de81.tar.bz2
i915: fix vbl swap allocation size.
Oops... Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm')
-rw-r--r--drivers/char/drm/i915_irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/drm/i915_irq.c b/drivers/char/drm/i915_irq.c
index 380c3f3..a443f4a 100644
--- a/drivers/char/drm/i915_irq.c
+++ b/drivers/char/drm/i915_irq.c
@@ -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");