Re: [PATCH 1/6] thunderbolt: Fix possible NULL pointer dereference in tb_acpi_add_link()

From
Mika Westerberg <mika.westerberg@linux.intel.com>
Date
2021-01-28 12:38:33
Also in
linux-acpi
Reply to
Mika Westerberg, 2021-01-26
On Tue, Jan 26, 2021 at 06:57:18PM +0300, Mika Westerberg wrote:
From: Mario Limonciello <redacted>

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: b2be2b05cf3b ("thunderbolt: Create device links from ACPI description")
Cc: <redacted>
Signed-off-by: Mario Limonciello <redacted>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Applied this one separately to thunderbolt.git/fixes.
Thread (23 messages) 23 messages, 4 authors, last reply 2021-01-28
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help