diff mbox series

[v2,01/16] libpdbg: Release adu lock when erroring out

Message ID 20180907064015.1058-2-rashmica.g@gmail.com
State Accepted
Headers show
Series Basic gdbserver for POWER8 | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success master/apply_patch Successfully applied
snowpatch_ozlabs/build-multiarch fail Test build-multiarch on branch master

Commit Message

Rashmica Gupta Sept. 7, 2018, 6:40 a.m. UTC
Signed-off-by: Rashmica Gupta <rashmica.g@gmail.com>
---
 libpdbg/adu.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/libpdbg/adu.c b/libpdbg/adu.c
index 4f2949f..27049b7 100644
--- a/libpdbg/adu.c
+++ b/libpdbg/adu.c
@@ -277,6 +277,7 @@  retry:
 		else {
 			PR_ERROR("Unable to read memory. "		\
 					 "ALTD_STATUS_REG = 0x%016" PRIx64 "\n", val);
+			adu_unlock(adu);
 			return -1;
 		}
 	}