mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-12 06:01:58 +00:00
pwm: omap-dmtimer: Remove PWM chip in .remove before making it unfunctional
[ Upstream commit43efdc8f0e] 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:6604c6556d("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>
This commit is contained in:
parent
5a89821e0b
commit
bf5266754e
1 changed files with 6 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue