aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2022-12-02 19:35:05 +0100
committerThierry Reding <[email protected]>2022-12-06 12:46:03 +0100
commit45558b3abb87eeb2cedb8a59cb2699c120b5102a (patch)
treec27fe0730d0ce2659113a4250eb5bcf50277da17 /drivers/usb/cdns3/cdns3-debug.h
parent7d9199995412fd30ea79e24d6c29f04a9b5d49ee (diff)
pwm: sifive: Call pwm_sifive_update_clock() while mutex is held
As was documented in commit 0f02f491b786 ("pwm: sifive: Reduce time the controller lock is held") a caller of pwm_sifive_update_clock() must hold the mutex. So fix pwm_sifive_clock_notifier() to grab the lock. While this necessity was only documented later, the race exists since the driver was introduced. Fixes: 9e37a53eb051 ("pwm: sifive: Add a driver for SiFive SoC PWM") Reported-by: Emil Renner Berthing <[email protected]> Reviewed-by: Emil Renner Berthing <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions