linux/drivers/thunderbolt
Mika Westerberg c3bf993092 thunderbolt: Check return value of tb_sw_read() in usb4_switch_op()
The function misses checking return value of tb_sw_read() before it
accesses the value that was read. Fix this by checking the return value
first.

Fixes: b04079837b ("thunderbolt: Add initial support for USB4")
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Yehezkel Bernat <yehezkelshb@gmail.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-28 19:00:59 +02:00
..
Kconfig
Makefile
cap.c
ctl.c
ctl.h
dma_port.c
dma_port.h
domain.c thunderbolt: Use scnprintf() for avoiding potential buffer overflow 2020-03-12 11:27:41 +03:00
eeprom.c
icm.c
lc.c
nhi.c
nhi.h
nhi_ops.c
nhi_regs.h
path.c
property.c
switch.c
tb.c
tb.h
tb_msgs.h
tb_regs.h
tmu.c
tunnel.c
tunnel.h
usb4.c thunderbolt: Check return value of tb_sw_read() in usb4_switch_op() 2020-04-28 19:00:59 +02:00
xdomain.c