summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAlexey Charkov <alchark@flipper.net>2026-09-30 20:07:45 +0400
committerBjorn Helgaas <bhelgaas@google.com>2026-10-21 13:15:28 -0500
commitee450e3a2d334c7e6383d8a55ad2d53b3822bacc (patch)
tree6a0e1015ca57da41a0a0e8ee314a65c247177bc1 /tools/perf/scripts/python
parent1dc62737b849676eb3af8b2cffa93a3778fa02d0 (diff)
PCI/pwrctrl: generic: Fix leaking array from of_regulator_bulk_get_all()
of_regulator_bulk_get_all() allocates the consumers array and returns it to the caller, who is expected to free it at an appropriate time. PCI pwrctrl never did, leading to a memory leak. Add an explicit kfree() for the consumers array. Fixes: 75996c92f4de ("PCI/pwrctrl: Add pwrctrl driver for PCI slots") Signed-off-by: Alexey Charkov <alchark@flipper.net> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20260930-pci-pwrctrl-kfree-v1-1-f09bbffd8da3@flipper.net
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions