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
..
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 thunderbolt: eeprom: Replace zero-length array with flexible-array member 2020-02-14 15:07:03 +03:00
icm.c thunderbolt: icm: Replace zero-length array with flexible-array member 2020-02-14 15:08:49 +03:00
Kconfig
lc.c
Makefile
nhi_ops.c
nhi_regs.h
nhi.c
nhi.h
path.c
property.c
switch.c thunderbolt: Fix error code in tb_port_is_width_supported() 2020-03-04 12:34:17 +03:00
tb_msgs.h
tb_regs.h
tb.c
tb.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