kernel_optimize_test/drivers/thunderbolt
Mika Westerberg 2abfa52947 thunderbolt: Bond lanes only when dual_link_port != NULL in alloc_dev_default()
[ Upstream commit a0d36fa1065901f939b04587a09c65303a64ac88 ]

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: 54509f5005 ("thunderbolt: Add KUnit tests for path walking")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Yehezkel Bernat <YehezkelShB@gmail.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-14 16:56:44 +02:00
..
acpi.c thunderbolt: Fix possible NULL pointer dereference in tb_acpi_add_link() 2021-02-10 09:29:15 +01:00
cap.c
ctl.c
ctl.h
debugfs.c thunderbolt: Add uaccess dependency to debugfs interface 2020-11-05 13:32:46 +03:00
dma_port.c thunderbolt: dma_port: Fix NVM read buffer bounds and offset issue 2021-06-03 09:00:32 +02:00
dma_port.h
domain.c
eeprom.c
icm.c thunderbolt: Fix use-after-free in remove_unplugged_switch() 2020-11-19 17:44:10 +03:00
Kconfig
lc.c
Makefile
nhi_ops.c
nhi_regs.h
nhi.c thunderbolt: Add support for Intel Tiger Lake-H 2020-11-06 16:39:11 +03:00
nhi.h thunderbolt: Add support for Intel Tiger Lake-H 2020-11-06 16:39:11 +03:00
nvm.c
path.c
property.c
quirks.c
retimer.c thunderbolt: Fix off by one in tb_port_find_retimer() 2021-04-14 08:42:03 +02:00
sb_regs.h
switch.c thunderbolt: Initialize HopID IDAs in tb_switch_alloc() 2021-03-25 09:04:15 +01:00
tb_msgs.h
tb_regs.h
tb.c thunderbolt: Increase runtime PM reference count on DP tunnel discovery 2021-03-25 09:04:15 +01:00
tb.h thunderbolt: Add support for Intel Tiger Lake-H 2020-11-06 16:39:11 +03:00
test.c thunderbolt: Bond lanes only when dual_link_port != NULL in alloc_dev_default() 2021-07-14 16:56:44 +02:00
tmu.c
tunnel.c
tunnel.h
usb4.c thunderbolt: usb4: Fix NVM read buffer bounds and offset issue 2021-06-03 09:00:32 +02:00
xdomain.c