aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorSakari Ailus <[email protected]>2022-08-09 00:12:13 +0300
committerRafael J. Wysocki <[email protected]>2022-08-09 19:14:11 +0200
commit46981fa78490e16589559cec8c762e5527d665d2 (patch)
tree46f5b5bec7f946ca3f48848e7b10b2ca05eb823b /lib/mpi/mpi-cmp.c
parent369af6bf2c28f9f57438e82f953f6351cf2a94cd (diff)
ACPI: property: Fix error handling in acpi_init_properties()
buf.pointer, memory for storing _DSD data and nodes, was released if either parsing properties or, as recently added, attaching data node tags failed. Alas, properties were still left pointing to this memory if parsing properties were successful but attaching data node tags failed. Fix this by separating error handling for the two, and leaving properties intact if data nodes cannot be tagged for a reason or another. Reported-by: kernel test robot <[email protected]> Fixes: 1d52f10917a7 ("ACPI: property: Tie data nodes to acpi handles") Signed-off-by: Sakari Ailus <[email protected]> [ rjw: Drop unrelated white space change ] Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions