kernel-hacking-2024-linux-s.../include/acpi
Linus Torvalds fc68f42aa7 ACPI: fix NULL pointer dereference
Commit 71f6428332 ("ACPI: utils: Fix reference counting in
for_each_acpi_dev_match()") started doing "acpi_dev_put()" on a pointer
that was possibly NULL.  That fails miserably, because that helper
inline function is not set up to handle that case.

Just make acpi_dev_put() silently accept a NULL pointer, rather than
calling down to put_device() with an invalid offset off that NULL
pointer.

Link: https://lore.kernel.org/lkml/a607c149-6bf6-0fd0-0e31-100378504da2@kernel.dk/
Reported-and-tested-by: Jens Axboe <axboe@kernel.dk>
Tested-by: Daniel Scally <djrscally@gmail.com>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-07-24 15:25:54 -07:00
..
platform ACPICA: Tree-wide: fix various typos and spelling mistakes 2021-04-07 19:09:00 +02:00
acbuffer.h ACPICA: Add _PLD panel positions 2021-06-07 14:04:43 +02:00
acconfig.h ACPICA: Add support for PlatformRtMechanism OperationRegion handler 2021-06-07 14:04:43 +02:00
acexcep.h ACPICA: Updated all copyrights to 2021 2021-01-22 15:51:53 +01:00
acnames.h ACPICA: Updated all copyrights to 2021 2021-01-22 15:51:53 +01:00
acoutput.h ACPICA: Tree-wide: fix various typos and spelling mistakes 2021-04-07 19:09:00 +02:00
acpi.h ACPICA: Updated all copyrights to 2021 2021-01-22 15:51:53 +01:00
acpi_bus.h ACPI: fix NULL pointer dereference 2021-07-24 15:25:54 -07:00
acpi_drivers.h Merge branches 'acpi-pci' and 'acpi-processor' 2021-04-26 17:03:05 +02:00
acpi_io.h
acpi_lpat.h
acpi_numa.h ACPI: NUMA: fix typo in a comment 2021-06-07 16:41:10 +02:00
acpiosxf.h ACPICA: Updated all copyrights to 2021 2021-01-22 15:51:53 +01:00
acpixf.h ACPICA: Update version to 20210604 2021-06-07 14:04:43 +02:00
acrestyp.h ACPICA: ACPI 6.4: add CSI2Bus resource template 2021-04-07 19:09:01 +02:00
actbl.h ACPICA: Updated all copyrights to 2021 2021-01-22 15:51:53 +01:00
actbl1.h ACPICA: Add the CFMWS structure definition to the CEDT table 2021-06-07 14:04:43 +02:00
actbl2.h ACPICA: Add PRMT module header to facilitate parsing 2021-06-10 15:04:22 +02:00
actbl3.h ACPICA: acpisrc: Add missing conversion for VIOT support 2021-04-07 19:09:01 +02:00
actypes.h ACPICA: Updated all copyrights to 2021 2021-01-22 15:51:53 +01:00
acuuid.h ACPICA: ACPI 6.4: add USB4 capabilities UUID 2021-04-07 19:09:00 +02:00
apei.h
battery.h
button.h
cppc_acpi.h ACPI: CPPC: Add emtpy stubs of functions for CONFIG_ACPI_CPPC_LIB unset 2021-03-23 19:44:17 +01:00
ghes.h
hed.h
nfit.h
pcc.h
pdc_intel.h
processor.h
reboot.h
video.h