Skip to content
Snippets Groups Projects
Commit 6a80f70e authored by Mika Westerberg's avatar Mika Westerberg Committed by Mario Limonciello
Browse files

thunderbolt: Bond lanes only when dual_link_port != NULL in alloc_dev_default()


We should not dereference ->dual_link_port if it is NULL and lane bonding
is requested. For this reason move lane bonding configuration happen
inside the block where ->dual_link_port != NULL.

Fixes: 54509f50 ("thunderbolt: Add KUnit tests for path walking")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarYehezkel Bernat <YehezkelShB@gmail.com>
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Change-Id: I59dc9fc947098bc6b993f97184cdab0460702419
parent 8d4dab8d
No related branches found
Tags drm-xe-next-2024-10-10
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment