summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_flip_work.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/drm_flip_work.c')
-rw-r--r--drivers/gpu/drm/drm_flip_work.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_flip_work.c b/drivers/gpu/drm/drm_flip_work.c
index f5889dd8e7aa..52c437746d48 100644
--- a/drivers/gpu/drm/drm_flip_work.c
+++ b/drivers/gpu/drm/drm_flip_work.c
@@ -37,7 +37,7 @@ static struct drm_flip_task *drm_flip_work_allocate_task(void *data, gfp_t flags
{
struct drm_flip_task *task;
- task = kzalloc(sizeof(*task), flags);
+ task = kzalloc_obj(*task, flags);
if (task)
task->data = data;