diff options
author | Hans de Goede <hdegoede@redhat.com> | 2024-11-09 23:00:28 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-11-12 21:21:58 +0100 |
commit | 4a49194f587a62d972b602e3e1a2c3cfe6567966 (patch) | |
tree | 85b0ad885a0b67d328fec07b5364efc36a22d6fa /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 7f261203d7c2e0c06e668b25dfaaee091a79ab25 (diff) | |
download | linux-4a49194f587a62d972b602e3e1a2c3cfe6567966.tar.gz linux-4a49194f587a62d972b602e3e1a2c3cfe6567966.tar.bz2 linux-4a49194f587a62d972b602e3e1a2c3cfe6567966.zip |
ACPI: x86: Add adev NULL check to acpi_quirk_skip_serdev_enumeration()
acpi_dev_hid_match() does not check for adev == NULL, dereferencing
it unconditional.
Add a check for adev being NULL before calling acpi_dev_hid_match().
At the moment acpi_quirk_skip_serdev_enumeration() is never called with
a controller_parent without an ACPI companion, but better safe than sorry.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patch.msgid.link/20241109220028.83047-1-hdegoede@redhat.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions