mirror of
https://github.com/torvalds/linux.git
synced 2026-10-25 01:05:03 +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:
|
||
|---|---|---|
| .. | ||
| reset | ||
| sequencing | ||
| supply | ||
| Kconfig | ||
| Makefile | ||