msm: camera: isp: Disable tasklet once

This changes avoids disabling and killing inactive tasklet.

CRs-Fixed: 2530034
Change-Id: If1b0b04684f9425f742b51e5eb4b6ec8107f2c75
Signed-off-by: Venkat Chinta <vchinta@codeaurora.org>
This commit is contained in:
Venkat Chinta 2019-09-23 15:23:30 -07:00 • committed by Gerrit - the friendly Code Review server
commit f7d89d9bed

View file

@ -296,6 +296,9 @@ void cam_tasklet_stop(void *tasklet_info)
{
struct cam_tasklet_info *tasklet = tasklet_info;
if (!atomic_read(&tasklet->tasklet_active))
return;
atomic_set(&tasklet->tasklet_active, 0);
tasklet_kill(&tasklet->tasklet);
tasklet_disable(&tasklet->tasklet);