Michal Wilczynski 0d16710146 ACPI: bus: Set driver_data to NULL every time .add() fails
Most ACPI drivers set driver_data in their .add() callbacks, but usually
they don't clear it in the error code path.

Set driver_data to NULL in acpi_device_probe() to prevent stale pointers
from staying around.

Signed-off-by: Michal Wilczynski <michal.wilczynski@intel.com>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2023-07-14 18:58:34 +02:00
..
2023-06-26 19:36:30 -07:00
2023-06-27 17:06:51 +02:00
2022-05-25 15:37:07 +02:00
2022-11-10 20:21:35 +01:00
2022-01-22 08:33:37 +02:00
2023-03-27 20:50:28 +02:00
2022-10-03 20:09:22 +02:00