Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54583bf4 authored by Dave Airlie's avatar Dave Airlie Committed by Dave Airlie
Browse files

i915: fix vbl swap allocation size.



Oops...

Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
parent c153f45f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -540,7 +540,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");