Files
Linux/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/[email protected]/
Reported-and-tested-by: Jens Axboe <[email protected]>
Tested-by: Daniel Scally <[email protected]>
Cc: Andy Shevchenko <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2021-07-24 15:25:54 -07:00
..
2021-06-07 14:04:43 +02:00
2021-07-24 15:25:54 -07:00
2021-06-07 16:41:10 +02:00
2021-01-22 15:51:53 +01:00
2021-06-07 14:04:43 +02:00
2021-01-22 15:51:53 +01:00
…
…