[COMMON] media: mfc: add lost spin_unlock_irqrestore
authorSunyoung Kang <sy0816.kang@samsung.com>
Mon, 16 Jul 2018 07:30:28 +0000 (16:30 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Mon, 23 Jul 2018 06:19:08 +0000 (15:19 +0900)
Change-Id: Ia4f50e329b2341ae8a3d33ecf7300cf62d5c6b82
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
drivers/media/platform/exynos/mfc/mfc_nal_q.c

index 4fba0451d240716025892344e45a591376af531a..3afcfb2870d5e42ba60ea70f264ed882bbf39e40 100644 (file)
@@ -153,6 +153,7 @@ void mfc_nal_q_clock_off(struct mfc_dev *dev, nal_queue_handle *nal_q_handle)
        mfc_debug(2, "[NALQ] nal_q_clk_cnt = %d\n", nal_q_handle->nal_q_clk_cnt);
 
        if (!nal_q_handle->nal_q_clk_cnt) {
+               spin_unlock_irqrestore(&nal_q_handle->lock, flags);
                mfc_err_dev("[NALQ] nal_q_clk_cnt is already zero\n");
                return;
        }