OSDN Git Service

msm: ais: isp: Handling buffer use after getting it freed
authorSuprith Malligere Shankaregowda <supgow@codeaurora.org>
Wed, 25 Apr 2018 05:47:30 +0000 (11:17 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Wed, 2 May 2018 06:17:58 +0000 (23:17 -0700)
commit3945168c9c817253ca54f970decf7daf4a5096f2
tree29b60a88433afe947781eff1ac97e93daeedc48b
parent2223ffa69b6f32b7018a7f155e4e1bc03f7da373
msm: ais: isp: Handling buffer use after getting it freed

In the code, start_fetch can try to access the buffer
pointer variable after free, as the same pointer can
can be freed at RELEASE_BUF call too at the same time.
Hence fixing this race condition.

Change-Id: I05825fb3423f95bc251e79416de50dc32cf086dc
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
drivers/media/platform/msm/ais/isp/msm_isp_axi_util.c
drivers/media/platform/msm/ais/isp/msm_isp_stats_util.c