Skip to content

Commit

Permalink
i915: fix vbl swap allocation size.
Browse files Browse the repository at this point in the history
Oops...

Signed-off-by: Dave Airlie <airlied@linux.ie>
  • Loading branch information
Dave Airlie authored and Dave Airlie committed Oct 15, 2007
1 parent c153f45 commit 54583bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/drm/i915_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 54583bf

Please sign in to comment.