diff options
author | NeilBrown <[email protected]> | 2015-02-21 15:15:16 +1100 |
---|---|---|
committer | Ulf Hansson <[email protected]> | 2015-03-19 11:26:35 +0100 |
commit | 6b7a783ebd2181aa2e0e6f9f5509da8466e321e3 (patch) | |
tree | 6c360e11c15c73fa8ebb50446b7e95589a7cabfe /lib/memory-notifier-error-inject.c | |
parent | 06e5801b8cb3fc057d88cb4dc03c0b64b2744cda (diff) |
mmc: pwrseq_simple: fix error path in mmc_pwrseq_simple_alloc
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: 934f1f48330ed695927a51fa068dc5d673f2da19
Acked-by: Javier Martinez Canillas <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
Reported-by: Srinivas Kandagatla <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions