提交 1045d81d 编写于 作者: J Jassi Brar 提交者: Mauro Carvalho Chehab

[media] m2m-deinterlace: fix allocated struct type

'xt' points to a dma_interleaved_template and not a dma_async_tx_descriptor.
Signed-off-by: NJassi Brar <jaswinder.singh@linaro.org>
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 b3c8154e
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册