diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-09-10 19:56:10 +0200 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-09-11 15:26:27 +0200 |
| commit | fcfb2b562115632e0a60a0928dca495f98eb335c (patch) | |
| tree | 3429ff1fef95ce3f2d384dd972c225890783159e /include | |
| parent | c94619c8a5b5d3b980433d247ac87a2d1c827cb6 (diff) | |
ACPI: glue: Rearrange acpi_bind_one() to avoid breakage
Rearange the code in acpi_bind_one() to avoid situations in which the
existing ACPI companion of the given device would be replaced with NULL
due to a memory allocation error or because somebody tries to bind a
physical device with an ACPI companion to a different ACPI device
erroneously.
Fixes: 7b1998116bbb ("ACPI / driver core: Store an ACPI device pointer in struct acpi_dev_node")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
[ rjw: Merged two conditionals to avoid redundant check ]
Link: https://patch.msgid.link/3465482.44csPzL39Z@rafael.j.wysocki
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
