[media] m2m-deinterlace: fix allocated struct type

'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>
This commit is contained in:
Jassi Brar 2014-01-12 08:21:28 -03:00 committed by Mauro Carvalho Chehab
parent b3c8154eb9
commit 1045d81d30

View file

@ -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);