mirror of
https://github.com/torvalds/linux.git
synced 2026-10-24 16:55:02 +02:00
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:
|
||
|---|---|---|
| .. | ||
| core.c | ||
| Kconfig | ||
| Makefile | ||
| pwrseq-pcie-m2.c | ||
| pwrseq-qcom-wcn.c | ||
| pwrseq-thead-gpu.c | ||