mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-14 05:52:16 +01: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]>