Skip to content

Commit

Permalink
[media] m2m-deinterlace: fix allocated struct type
Browse files Browse the repository at this point in the history
'xt' points to a dma_interleaved_template and not a dma_async_tx_descriptor.

Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
  • Loading branch information
Jassi Brar authored and Mauro Carvalho Chehab committed Jan 15, 2014
1 parent b3c8154 commit 1045d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/platform/m2m-deinterlace.c
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ static int deinterlace_open(struct file *file)
return ret;
}

ctx->xt = kzalloc(sizeof(struct dma_async_tx_descriptor) +
ctx->xt = kzalloc(sizeof(struct dma_interleaved_template) +
sizeof(struct data_chunk), GFP_KERNEL);
if (!ctx->xt) {
kfree(ctx);
Expand Down

0 comments on commit 1045d81

Please sign in to comment.