diff options
author | Jassi Brar <jaswinder.singh@linaro.org> | 2014-01-12 06:21:28 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-01-15 08:34:33 -0500 |
commit | 1045d81d301055b162a3d308e1fb81d2b62a1f2a (patch) | |
tree | bd99f6c398dc4c6f2ec4e93bba465df6969c3d4e | |
parent | b3c8154eb9a19d45355a53d81d2ccdbc22d0cdab (diff) |
[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>
-rw-r--r-- | drivers/media/platform/m2m-deinterlace.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
918 | return ret; | 918 | return ret; |
919 | } | 919 | } |
920 | 920 | ||
921 | ctx->xt = kzalloc(sizeof(struct dma_async_tx_descriptor) + | 921 | ctx->xt = kzalloc(sizeof(struct dma_interleaved_template) + |
922 | sizeof(struct data_chunk), GFP_KERNEL); | 922 | sizeof(struct data_chunk), GFP_KERNEL); |
923 | if (!ctx->xt) { | 923 | if (!ctx->xt) { |
924 | kfree(ctx); | 924 | kfree(ctx); |