diff options
author | Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> | 2010-11-30 16:44:04 +0100 |
---|---|---|
committer | Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> | 2010-12-01 09:14:17 +0100 |
commit | 9e9aca86a21302c0ea26557b374b74a68f9af40d (patch) | |
tree | 2afb94eb208d5488f40ba008eae39f350eed0bf1 /jni/com_android_nfc_NativeLlcpSocket.cpp | |
parent | 89c67765e6df5925a7799176a18b17171cbf9e03 (diff) | |
download | packages_apps_nfc-9e9aca86a21302c0ea26557b374b74a68f9af40d.zip packages_apps_nfc-9e9aca86a21302c0ea26557b374b74a68f9af40d.tar.gz packages_apps_nfc-9e9aca86a21302c0ea26557b374b74a68f9af40d.tar.bz2 |
Fixed error case where dynamic semaphore was not released.
Change-Id: I2db58875daaa85289dcb4fff07c57d736dbc6cfc
Diffstat (limited to 'jni/com_android_nfc_NativeLlcpSocket.cpp')
-rw-r--r-- | jni/com_android_nfc_NativeLlcpSocket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ static jint com_android_nfc_NativeLlcpSocket_doReceive(JNIEnv *e, jobject o, jby { /* 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)); |