aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform
diff options
context:
space:
mode:
authorKamil Debski <k.debski@samsung.com>2012-11-22 08:00:28 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-01-06 06:59:20 -0500
commit1b73ba0be4aad87a0d195a6d433bb59ffe81e99a (patch)
tree25903d6a1ebb76fa7a7d327b142e377424c9651c /drivers/media/platform
parent317b4ca4982ea2429b75d0acd10445ec9475aa86 (diff)
[media] s5p-mfc: Context handling in open() bugfix
Signed-off-by: Kamil Debski <k.debski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r--drivers/media/platform/s5p-mfc/s5p_mfc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c
index 4fcd075e8699..b1d7f9a9b996 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c
@@ -855,16 +855,16 @@ err_queue_init:
855 s5p_mfc_deinit_hw(dev); 855 s5p_mfc_deinit_hw(dev);
856err_init_hw: 856err_init_hw:
857err_load_fw: 857err_load_fw:
858 dev->ctx[ctx->num] = NULL;
859 del_timer_sync(&dev->watchdog_timer);
860err_pwr_enable: 858err_pwr_enable:
861 if (dev->num_inst == 1) { 859 if (dev->num_inst == 1) {
862 if (s5p_mfc_power_off() < 0) 860 if (s5p_mfc_power_off() < 0)
863 mfc_err("power off failed\n"); 861 mfc_err("power off failed\n");
862 del_timer_sync(&dev->watchdog_timer);
864 } 863 }
865err_ctrls_setup: 864err_ctrls_setup:
866 s5p_mfc_dec_ctrls_delete(ctx); 865 s5p_mfc_dec_ctrls_delete(ctx);
867err_bad_node: 866err_bad_node:
867 dev->ctx[ctx->num] = NULL;
868err_no_ctx: 868err_no_ctx:
869 v4l2_fh_del(&ctx->fh); 869 v4l2_fh_del(&ctx->fh);
870 v4l2_fh_exit(&ctx->fh); 870 v4l2_fh_exit(&ctx->fh);