diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2019-11-11 12:03:54 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-28 18:36:05 +0300 |
commit | 01289476f55d716dc705a50e5fd6296c73342912 (patch) | |
tree | e9b898f3c2c5b9e55391826344f522e2e9963d52 /drivers/pwm/pwm-berlin.c | |
parent | 9e09e071f7e0e75546071c5e1c1392641b8ab900 (diff) | |
download | linux-01289476f55d716dc705a50e5fd6296c73342912.tar.xz |
pwm: omap-dmtimer: Remove PWM chip in .remove before making it unfunctional
[ Upstream commit 43efdc8f0e6d7088ec61bd55a73bf853f002d043 ]
In the old code (e.g.) mutex_destroy() was called before
pwmchip_remove(). Between these two calls it is possible that a PWM
callback is used which tries to grab the mutex.
Fixes: 6604c6556db9 ("pwm: Add PWM driver for OMAP using dual-mode timers")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/pwm/pwm-berlin.c')
0 files changed, 0 insertions, 0 deletions