Skip to content
Commit 4964e44e authored by Harsh Shah's avatar Harsh Shah
Browse files

msm: camera: isp: Protect the evt_handler with lock



Extend the rw_lock to include th_procesing(), else unsunscribe_irq()
can be called and evt_handler will be freed, causing use after free
in th_processing on evt_handler.
Also, remove asymmetric call to unsubscribe in cam_vfe_stop(). For
VFE Out resources, we do not call subscribe in cam_vfe_start(), so no
need to call unsubscribe.

Change-Id: Ie45a7244645d364b727948fd30f830c6d958ff8a
Signed-off-by: default avatarHarsh Shah <harshs@codeaurora.org>
parent 0f62c596
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment