diff options
author | 2025-08-22 11:08:46 +0300 | |
---|---|---|
committer | 2025-08-22 16:21:35 -0500 | |
commit | 80af3745ca465c6c47e833c1902004a7fa944f37 (patch) | |
tree | 6e5a292c11fd062074d136b937115ab585b7bac6 /tools/perf/scripts/python | |
parent | dt-bindings: vendor-prefixes: add eswin (diff) | |
download | wireguard-linux-80af3745ca465c6c47e833c1902004a7fa944f37.tar.xz wireguard-linux-80af3745ca465c6c47e833c1902004a7fa944f37.zip |
of: dynamic: Fix use after free in of_changeset_add_prop_helper()
If the of_changeset_add_property() function call fails, then this code
frees "new_pp" and then dereference it on the next line. Return the
error code directly instead.
Fixes: c81f6ce16785 ("of: dynamic: Fix memleak when of_pci_add_properties() failed")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/aKgljjhnpa4lVpdx@stanley.mountain
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions