aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorSven Van Asbroeck <[email protected]>2019-02-11 10:04:26 -0500
committerFelipe Balbi <[email protected]>2019-02-13 13:05:35 +0200
commit5895d311d28f2605e2f71c1a3e043ed38f3ac9d2 (patch)
tree9e115001cee073a4e31be09593903d691e594a36 /lib/mpi/mpi-cmp.c
parent0d1ec194721f844a6b20f7f4854332adcebc6fb9 (diff)
usb: phy: twl6030-usb: fix possible use-after-free on remove
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 <[email protected]> Cc: Bin Liu <[email protected]> Fixes: b6a619a883c3 ("usb: phy: Check initial state for twl6030") Signed-off-by: Sven Van Asbroeck <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions