commit | aec2a2761a5fc673f89040fef6b89434101edcfe | [log] [tgz] |
---|---|---|
author | Aaron Tzeng <Aaron.Tzeng@quantatw.com> | Tue Jan 31 23:00:00 2017 +0530 |
committer | Aaron Tzeng <Aaron.Tzeng@quantatw.com> | Wed Mar 29 02:55:09 2017 +0000 |
tree | f99bd9fa048ebd5afe7a4f8c38816cc2086fad0a | |
parent | 76dcfcd6b3b8bcbe1997d1fa69a647d55d24f7a7 [diff] |
msm: pm: Add mutex lock for shared data The buffer allocated in file open operations need to be protected as there can be a possiblity of use-after-free scenario. Process A B | | open | | | read started | | close Add mutex lock to protect the buffer to avoid this. Change-Id: I1e066fd0a047bcec2af7829015089d5c882fb2f3 Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org> Signed-off-by: Naresh Malladi <namall@codeaurora.org>