Skip to content
Snippets Groups Projects
Commit aec2a276 authored by Aaron Tzeng's avatar Aaron Tzeng
Browse files

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: default avatarRaju P.L.S.S.S.N <rplsssn@codeaurora.org>
Signed-off-by: default avatarNaresh Malladi <namall@codeaurora.org>
parent 76dcfcd6
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment