i915: fix vbl_swap allocation

main
Dave Airlie 2007-10-14 21:19:13 +10:00
parent 3ab7627651
commit 8d3cb7e472
1 changed files with 1 additions and 1 deletions

View File

@ -691,7 +691,7 @@ int i915_vblank_swap(struct drm_device *dev, void *data,
return -EBUSY; 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) { if (!vbl_swap) {
DRM_ERROR("Failed to allocate memory to queue swap\n"); DRM_ERROR("Failed to allocate memory to queue swap\n");