i915: fix vbl_swap allocation

This commit is contained in:
Dave Airlie 2007-10-14 21:19:13 +10:00
parent 3ab7627651
commit 8d3cb7e472

View file

@ -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");