Re: [PATCH] thunderbolt: Check return value of tb_sw_read() in usb4_switch_op()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux