linux/drivers/thunderbolt
Mika Westerberg 86da809dda thunderbolt: Do not handle ICM events after domain is stopped
If there is a long chain of devices connected when the driver is loaded
ICM sends device connected event for each and those are put to tb->wq
for later processing. Now if the driver gets unloaded in the middle, so
that the work queue is not yet empty it gets flushed by tb_domain_stop().
However, by that time the root switch is already removed so the driver
crashes when it tries to dereference it in ICM event handling callbacks.

Fix this by checking whether the root switch is already removed. If it
is we know that the domain is stopped and we should merely skip handling
the event.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-10-02 10:51:16 -07:00
..
cap.c
ctl.c
ctl.h
dma_port.c thunderbolt: Add support for Intel Titan Ridge 2018-03-09 12:54:11 +03:00
dma_port.h
domain.c thunderbolt: Add support for runtime PM 2018-07-25 10:55:29 +02:00
eeprom.c
icm.c thunderbolt: Do not handle ICM events after domain is stopped 2018-10-02 10:51:16 -07:00
Kconfig
Makefile
nhi_regs.h
nhi.c thunderbolt: Add support for runtime PM 2018-07-25 10:55:29 +02:00
nhi.h thunderbolt: Add support for Intel Titan Ridge 2018-03-09 12:54:11 +03:00
path.c
property.c
switch.c thunderbolt: Add support for runtime PM 2018-07-25 10:55:29 +02:00
tb_msgs.h thunderbolt: Add support for runtime PM 2018-07-25 10:55:29 +02:00
tb_regs.h thunderbolt: Fix small typo in variable name 2018-07-25 10:15:24 +02:00
tb.c
tb.h thunderbolt: Add support for runtime PM 2018-07-25 10:55:29 +02:00
tunnel_pci.c
tunnel_pci.h
xdomain.c thunderbolt: Add support for runtime PM 2018-07-25 10:55:29 +02:00