Skip to content
Commit 2a1cffd7 authored by Mario Limonciello's avatar Mario Limonciello Committed by Liwei Song
Browse files

thunderbolt: Fix possible NULL pointer dereference in tb_acpi_add_link()



commit 4d395c5e upstream.

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: b2be2b05 ("thunderbolt: Create device links from ACPI description")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarMario Limonciello <mario.limonciello@dell.com>
Acked-by: default avatarYehezkel Bernat <YehezkelShB@gmail.com>
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarLiwei Song <liwei.song@windriver.com>
parent 0011d8a9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment