[media] m2m-deinterlace: fix allocated struct type
authorJassi Brar <jaswinder.singh@linaro.org>
Sun, 12 Jan 2014 11:21:28 +0000 (08:21 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 15 Jan 2014 13:34:33 +0000 (11:34 -0200)
'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>
drivers/media/platform/m2m-deinterlace.c

index 65cab70fefcb067e3de0a404d47bd41feaafd38b..6bb86b581a34e43f0fe34cc44f5a2132b1589e7b 100644 (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);