upstream: [media] m2m-deinterlace: fix allocated struct type
authorJassi Brar <jaswinder.singh@linaro.org>
Sun, 12 Jan 2014 11:21:28 +0000 (08:21 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:54:32 +0000 (11:54 +0900)
'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 36513e8..415438f 100644 (file)
@@ -919,7 +919,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);