mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-07 20:04:19 -05:00
i915: fix vbl swap allocation size.
Oops... Signed-off-by: Dave Airlie <airlied@linux.ie>
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user