Commit 0a0225ba authored by Dave Airlie's avatar Dave Airlie Committed by Greg Kroah-Hartman

i915: fix vbl swap allocation size.

This is upstream as 54583bf4

Oops...
Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0d529563
...@@ -541,7 +541,7 @@ int i915_vblank_swap(DRM_IOCTL_ARGS) ...@@ -541,7 +541,7 @@ int i915_vblank_swap(DRM_IOCTL_ARGS)
return DRM_ERR(EBUSY); return DRM_ERR(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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment