commit | 9e9aca86a21302c0ea26557b374b74a68f9af40d | [log] [tgz] |
---|---|---|
author | Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> | Tue Nov 30 16:44:04 2010 +0100 |
committer | Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> | Wed Dec 01 09:14:17 2010 +0100 |
tree | 2afb94eb208d5488f40ba008eae39f350eed0bf1 | |
parent | 89c67765e6df5925a7799176a18b17171cbf9e03 [diff] |
Fixed error case where dynamic semaphore was not released. Change-Id: I2db58875daaa85289dcb4fff07c57d736dbc6cfc
diff --git a/jni/com_android_nfc_NativeLlcpSocket.cpp b/jni/com_android_nfc_NativeLlcpSocket.cpp index c4df5c3..fb6fd22 100644 --- a/jni/com_android_nfc_NativeLlcpSocket.cpp +++ b/jni/com_android_nfc_NativeLlcpSocket.cpp
@@ -322,7 +322,7 @@ { /* Return status should be either SUCCESS or PENDING */ LOGE("phLibNfc_Llcp_Recv() returned 0x%04x[%s]", ret, nfc_jni_get_status_name(ret)); - return 0; + goto clean_and_return; } TRACE("phLibNfc_Llcp_Recv() returned 0x%04x[%s]", ret, nfc_jni_get_status_name(ret));