From: Jassi Brar Date: Sun, 12 Jan 2014 11:21:28 +0000 (-0300) Subject: [media] m2m-deinterlace: fix allocated struct type X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1045d81d301055b162a3d308e1fb81d2b62a1f2a;p=openwrt%2Fstaging%2Fblogic.git [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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/m2m-deinterlace.c b/drivers/media/platform/m2m-deinterlace.c index 65cab70fefcb..6bb86b581a34 100644 --- a/drivers/media/platform/m2m-deinterlace.c +++ b/drivers/media/platform/m2m-deinterlace.c @@ -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);