diff options
author | Michal Wilczynski <[email protected]> | 2023-07-03 11:02:45 +0300 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2023-07-14 18:58:34 +0200 |
commit | 0d16710146a10cf62b3efddee8ffd006432d5d7e (patch) | |
tree | 8e52a5609ffbe51629a31c7f2b7c450e14019054 /net/unix/sysctl_net_unix.c | |
parent | c542ce36a9f0bbf7c3a607ee31f1c39fda280782 (diff) |
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 <[email protected]>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions