Attention is currently required from: Nico Huber, Miklós Márton, Anastasia Klimchuk.
Anastasia Klimchuk uploaded patch set #2 to this change.
stlinkv3_spi.c: Clean up properly on all init error paths
Do a cleanup: close handle and exit usb context in cases when init
fails.
If register_spi_master() fails, going to err_exit cleanup is not
needed because at that point shutdown function has already been
registered and it does the job.
BUG=b:185191942
TEST=builds
Change-Id: I9fabf48068635593bc86006c9642d8569eee8447
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
---
M stlinkv3_spi.c
1 file changed, 7 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/90/54190/2
To view, visit change 54190. To unsubscribe, or for help writing mail filters, visit settings.