Skip to content
Commit e9d0e751 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mika Westerberg
Browse files

thunderbolt: Fix error code in tb_port_is_width_supported()



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: 91c0c120 ("thunderbolt: Add support for lane bonding")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent 98d54f81
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment