You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/12/13 23:08:36 UTC

[3/4] incubator-mynewt-core git commit: nimble/gap: Fix for missing ble_hs_unlock

nimble/gap: Fix for missing ble_hs_unlock

Use goto done; so lock can be released properly


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/bd546f76
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/bd546f76
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/bd546f76

Branch: refs/heads/develop
Commit: bd546f763a9b68c3a09de867845bec3a3208e88a
Parents: 5e0f1bc
Author: \u0141ukasz Rymanowski <lu...@codecoup.pl>
Authored: Mon Dec 12 15:15:17 2016 +0100
Committer: \u0141ukasz Rymanowski <lu...@codecoup.pl>
Committed: Tue Dec 13 22:08:10 2016 +0100

----------------------------------------------------------------------
 net/nimble/host/src/ble_gap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/bd546f76/net/nimble/host/src/ble_gap.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_gap.c b/net/nimble/host/src/ble_gap.c
index fcfdc57..e97888b 100644
--- a/net/nimble/host/src/ble_gap.c
+++ b/net/nimble/host/src/ble_gap.c
@@ -1897,7 +1897,7 @@ ble_gap_adv_start(uint8_t own_addr_type, uint8_t peer_addr_type,
 
     rc = ble_hs_id_use_addr(own_addr_type);
     if (rc != 0) {
-        return rc;
+        goto done;
     }
 
     BLE_HS_LOG(INFO, "GAP procedure initiated: advertise; ");