summaryrefslogtreecommitdiff
path: root/net/bluetooth
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-10-15 21:03:15 (GMT)
committerGustavo F. Padovan <padovan@profusion.mobi>2011-10-15 21:03:15 (GMT)
commite5b82e58922749e79b84b85cfc6845cbfd1908ed (patch)
tree4a458674e809aa243db31f06ffe7580c0bd62583 /net/bluetooth
parentc636ef58865920c8ba9f877c1040bc73eb61e5cb (diff)
downloadlinux-fsl-qoriq-e5b82e58922749e79b84b85cfc6845cbfd1908ed.tar.xz
Bluetooth: Fix missing cmd_status in mgmt
set_service_cache() was missing a cmd_status for the error case. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/mgmt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 080cfb6..9ffd7c3 100644
--- 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);