On Thu, Apr 16, 2020 at 3:01 PM Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx> wrote: > > 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@xxxxxxxxxxxxxxx> Reviewed-by: Yehezkel Bernat <yehezkelshb@xxxxxxxxx>