summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorSven Van Asbroeck <thesven73@gmail.com>2019-02-11 10:04:26 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-27 14:46:19 +0100
commit30cf71254f9f661906f5c3eac379723899a5633e (patch)
tree04ce6ef3f5169cf929787bb4b9799d502d9ecc88 /block
parent7020a36d86bc76f49fffaf3cdf668b4a781a7b4f (diff)
downloadlinux-stable-30cf71254f9f661906f5c3eac379723899a5633e.tar.gz
linux-stable-30cf71254f9f661906f5c3eac379723899a5633e.tar.bz2
linux-stable-30cf71254f9f661906f5c3eac379723899a5633e.zip
usb: phy: twl6030-usb: fix possible use-after-free on remove
[ Upstream commit 5895d311d28f2605e2f71c1a3e043ed38f3ac9d2 ] In remove(), use cancel_delayed_work_sync() to cancel the delayed work. Otherwise there's a chance that this work will continue to run until after the device has been removed. This issue was detected with the help of Coccinelle. Cc: Tony Lindgren <tony@atomide.com> Cc: Bin Liu <b-liu@ti.com> Fixes: b6a619a883c3 ("usb: phy: Check initial state for twl6030") Signed-off-by: Sven Van Asbroeck <TheSven73@gmail.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions