mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 15:33:28 +00:00
The current error-path code (when gpiod_get_index() reports
an error) can never free pwrseq->reset_gpios[0], but might
try to tree pwrseq->reset_gpios[-1], which has unfortunate
consequences.
Signed-off-by: NeilBrown <[email protected]>
Fixes: 934f1f4833
Acked-by: Javier Martinez Canillas <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
Reported-by: Srinivas Kandagatla <[email protected]>