Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1045d81d authored by Jassi Brar's avatar Jassi Brar Committed by Mauro Carvalho Chehab
Browse files

[media] m2m-deinterlace: fix allocated struct type



'xt' points to a dma_interleaved_template and not a dma_async_tx_descriptor.

Signed-off-by: default avatarJassi Brar <jaswinder.singh@linaro.org>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent b3c8154e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -918,7 +918,7 @@ static int deinterlace_open(struct file *file)
		return ret;
		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);
				sizeof(struct data_chunk), GFP_KERNEL);
	if (!ctx->xt) {
	if (!ctx->xt) {
		kfree(ctx);
		kfree(ctx);