linux/drivers/power/sequencing
Alexey Charkov 0d6c5794fd power: sequencing: pcie-m2: Fix leaking array from of_regulator_bulk_get_all()
of_regulator_bulk_get_all() allocates the consumers array and hands it to
the caller, who is expected to free it at an appropriate time.
pwrseq-pcie-m2.c never did, leading to a memory leak.

Add an explicit kfree() for the consumers array.

Cc: stable@vger.kernel.org
Fixes: 52e7b5bd62 ("power: sequencing: Add the Power Sequencing driver for the PCIe M.2 connectors")
Signed-off-by: Alexey Charkov <alchark@flipper.net>
Link: https://patch.msgid.link/20260930-m2-pwrseq-kfree-v1-1-82678b02c126@flipper.net
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
2026-10-01 09:51:59 +02:00
..
core.c power sequencing fixes for v7.3-rc4 2026-09-17 09:40:25 -07:00
Kconfig power: sequencing: Fix build issue with COMPILE_TEST 2026-09-02 12:44:07 +02:00
Makefile power: sequencing: Add the Power Sequencing driver for the PCIe M.2 connectors 2026-01-23 10:05:38 +01:00
pwrseq-pcie-m2.c power: sequencing: pcie-m2: Fix leaking array from of_regulator_bulk_get_all() 2026-10-01 09:51:59 +02:00
pwrseq-qcom-wcn.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
pwrseq-thead-gpu.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00