vdin: System panic when calling stop_tvin_service twice continuously [1/1]
authorzhiwei.yuan <zhiwei.yuan@amlogic.com>
Mon, 9 Sep 2019 02:39:59 +0000 (10:39 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Wed, 11 Sep 2019 05:53:10 +0000 (22:53 -0700)
commiteaa25b68eb1cf286497e619bf5b9ee90154f1df5
treef0b43a319b2109c4c06053ae58554b4cbf04ef12
parent9300ce313ac92f87186ab7e2117c3b34c834e870
vdin: System panic when calling stop_tvin_service twice continuously [1/1]

PD#SWPL-13880

Problem:
free_irq was called twice continuously while ponter is NULL at 2nd time.

Solution:
use mutex to prevent reentry

Verify:
verified by t962x2_x301

Change-Id: I8032d15de0a2fe5a1ab30b70af0e342d0aa3ac40
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
drivers/amlogic/media/vin/tvin/vdin/vdin_drv.c