summaryrefslogtreecommitdiff
path: root/drivers/usb/storage
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2020-04-09 10:18:10 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-28 20:00:59 +0300
commitc3bf9930921b33edb31909006607e478751a6f5e (patch)
tree16e27b3fac5280ec7405c0a4a86f6be5edb72331 /drivers/usb/storage
parent6a8b55ed4056ea5559ebe4f6a4b247f627870d4c (diff)
downloadlinux-c3bf9930921b33edb31909006607e478751a6f5e.tar.xz
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: b04079837b20 ("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>
Diffstat (limited to 'drivers/usb/storage')
0 files changed, 0 insertions, 0 deletions