You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 3, 2018. It is now read-only.
drivers: soc: qcom: rpm_stats: Add mutex lock for shared data
The buffer allocated in rpmstats_show 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.
Also allow reading RPM stats information using sysfs nodes.
The stats are available at
/sys/power/system_sleep/stats
Change-Id: I28ab98e264fc4e425f23c71ddc6dcc8f275d8f6b
Signed-off-by: Naresh Malladi <[email protected]>
0 commit comments