mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-01 23:04:54 +01:00
When we walk up the device hierarchy in tb_acpi_add_link() make sure we
break the loop if the device has no parent. Otherwise we may crash the
kernel by dereferencing a NULL pointer.
Fixes: b2be2b05cf ("thunderbolt: Create device links from ACPI description")
Cc: [email protected]
Signed-off-by: Mario Limonciello <[email protected]>
Acked-by: Yehezkel Bernat <[email protected]>
Signed-off-by: Mika Westerberg <[email protected]>