aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorLeonard Crestez <[email protected]>2019-09-24 10:52:23 +0300
committerChanwoo Choi <[email protected]>2019-11-06 12:04:00 +0900
commit2abb0d5268ae7b5ddf82099b1f8d5aa8414637d4 (patch)
tree3c6991f0a3e90ac554a58d23bcfd6cddb14928bf /drivers/usb/cdns3/cdns3-debug.h
parentd68adc8f85cd757bd33c8d7b2660ad6f16f7f3dc (diff)
PM / devfreq: Lock devfreq in trans_stat_show
There is no locking in this sysfs show function so stats printing can race with a devfreq_update_status called as part of freq switching or with initialization. Also add an assert in devfreq_update_status to make it clear that lock must be held by caller. Fixes: 39688ce6facd ("PM / devfreq: account suspend/resume for stats") Cc: [email protected] Signed-off-by: Leonard Crestez <[email protected]> Reviewed-by: Matthias Kaehlcke <[email protected]> Reviewed-by: Chanwoo Choi <[email protected]> Signed-off-by: Chanwoo Choi <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions