OSDN Git Service

usb: typec: tps6598x: Fix fault at module removal
authorRoger Quadros <rogerq@kernel.org>
Fri, 21 Apr 2023 10:17:20 +0000 (13:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 May 2023 09:51:09 +0000 (18:51 +0900)
commit94ea04ec790887b5b0e43429a92c18a1e692ec08
tree9b6d02f9187daadbfb760b5a3cbe98e810dd3913
parent3c0f4f09c063e143822393d99cb2b19a85451c07
usb: typec: tps6598x: Fix fault at module removal

We need to cancel the delayed workqueue if it is being used
else it will cause paging request fault during module removal.

Fixes: 0d6a119cecd7 ("usb: typec: tps6598x: Add support for polling interrupts status")
Signed-off-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20230421101720.34318-1-rogerq@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tipd/core.c