提交 54583bf4 编写于 作者: D Dave Airlie 提交者: Dave Airlie

i915: fix vbl swap allocation size.

Oops...
Signed-off-by: NDave Airlie <airlied@linux.ie>
上级 c153f45f
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册