summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/ti-vpe/vpe.c
diff options
context:
space:
mode:
authorHarinarayan Bhatta2016-11-19 00:20:20 +0100
committerMauro Carvalho Chehab2016-11-22 10:04:20 +0100
commitf43aa420a89a4a17117e21553283e2a50cf86df8 (patch)
treea30c8a4fd7f53a256771b7a8b690050db326d8ea /drivers/media/platform/ti-vpe/vpe.c
parent[media] media: ti-vpe: vpe: Return NULL for invalid buffer type (diff)
downloadkernel-qcow2-linux-f43aa420a89a4a17117e21553283e2a50cf86df8.tar.gz
kernel-qcow2-linux-f43aa420a89a4a17117e21553283e2a50cf86df8.tar.xz
kernel-qcow2-linux-f43aa420a89a4a17117e21553283e2a50cf86df8.zip
[media] media: ti-vpe: Free vpdma buffers in vpe_release
Free vpdma buffers in vpe_release. Otherwise it was generating random backtrace. Signed-off-by: Harinarayan Bhatta <harinarayan@ti.com> Signed-off-by: Somnath Mukherjee <somnath@ti.com> Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com> Signed-off-by: Benoit Parrot <bparrot@ti.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/ti-vpe/vpe.c')
-rw-r--r--drivers/media/platform/ti-vpe/vpe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c
index 4b6e8839dd83..f2b90d42b408 100644
--- a/drivers/media/platform/ti-vpe/vpe.c
+++ b/drivers/media/platform/ti-vpe/vpe.c
@@ -2182,6 +2182,9 @@ static int vpe_release(struct file *file)
vpdma_free_desc_list(&ctx->desc_list);
vpdma_free_desc_buf(&ctx->mmr_adb);
+ vpdma_free_desc_buf(&ctx->sc_coeff_v);
+ vpdma_free_desc_buf(&ctx->sc_coeff_h);
+
v4l2_fh_del(&ctx->fh);
v4l2_fh_exit(&ctx->fh);
v4l2_ctrl_handler_free(&ctx->hdl);