aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/platform/m2m-deinterlace.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/platform/m2m-deinterlace.c b/drivers/media/platform/m2m-deinterlace.c
index ed77a645e992..6c4db9b98989 100644
--- a/drivers/media/platform/m2m-deinterlace.c
+++ b/drivers/media/platform/m2m-deinterlace.c
@@ -917,10 +917,8 @@ static int deinterlace_open(struct file *file)
917 ctx->xt = kzalloc(sizeof(struct dma_async_tx_descriptor) + 917 ctx->xt = kzalloc(sizeof(struct dma_async_tx_descriptor) +
918 sizeof(struct data_chunk), GFP_KERNEL); 918 sizeof(struct data_chunk), GFP_KERNEL);
919 if (!ctx->xt) { 919 if (!ctx->xt) {
920 int ret = PTR_ERR(ctx->xt);
921
922 kfree(ctx); 920 kfree(ctx);
923 return ret; 921 return -ENOMEM;
924 } 922 }
925 923
926 ctx->colorspace = V4L2_COLORSPACE_REC709; 924 ctx->colorspace = V4L2_COLORSPACE_REC709;