diff options
| author | Mario Limonciello <[email protected]> | 2020-10-26 16:12:59 +0000 |
|---|---|---|
| committer | Mika Westerberg <[email protected]> | 2021-01-28 12:30:57 +0000 |
| commit | 4d395c5e74398f664405819330e5a298da37f655 (patch) | |
| tree | e45b2bcca89fff8be148bf659ee4c4b223443225 /scripts/clang-tools/gen_compile_commands.py | |
| parent | Linux 5.11-rc5 (diff) | |
| download | kernel-4d395c5e74398f664405819330e5a298da37f655.tar.gz kernel-4d395c5e74398f664405819330e5a298da37f655.zip | |
thunderbolt: Fix possible NULL pointer dereference in tb_acpi_add_link()
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: [email protected]
Signed-off-by: Mario Limonciello <[email protected]>
Acked-by: Yehezkel Bernat <[email protected]>
Signed-off-by: Mika Westerberg <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions
