Re: [PATCH] thunderbolt: Fix error code in tb_port_is_width_supported()

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

 



On Tue, Mar 03, 2020 at 01:17:16PM +0300, Dan Carpenter wrote:
> This function is type bool, and it's supposed to return true on success. 
> Unfortunately, this path takes negative error codes and casts them to
> bool (true) so it's treated as success instead of failure.
> 
> Fixes: 91c0c12080d0 ("thunderbolt: Add support for lane bonding")
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

Applied to fixes, thanks!



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

  Powered by Linux