projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c636ef5
)
Bluetooth: Fix missing cmd_status in mgmt
author
Gustavo F. Padovan
<padovan@profusion.mobi>
Sat, 15 Oct 2011 21:03:15 +0000
(18:03 -0300)
committer
Gustavo F. Padovan
<padovan@profusion.mobi>
Sat, 15 Oct 2011 21:03:15 +0000
(18:03 -0300)
set_service_cache() was missing a cmd_status for the error case.
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/mgmt.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/mgmt.c
b/net/bluetooth/mgmt.c
index 080cfb6347e8b9dabfa24cd9b188612f1c4b457d..9ffd7c3dbb3e96314904510a61ce385777dd6dc7 100644
(file)
--- a/
net/bluetooth/mgmt.c
+++ b/
net/bluetooth/mgmt.c
@@
-897,6
+897,9
@@
static int set_service_cache(struct sock *sk, u16 index, unsigned char *data,
if (err == 0)
err = cmd_complete(sk, index, MGMT_OP_SET_SERVICE_CACHE, NULL,
0);
+ else
+ cmd_status(sk, index, MGMT_OP_SET_SERVICE_CACHE, -err);
+
hci_dev_unlock_bh(hdev);
hci_dev_put(hdev);