summaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-02-23 21:33:16 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-02-23 22:02:27 +0200
commit9246a8693e74b3480913cf6e0c2d472267169990 (patch)
tree781529875341c6a4e95babb308aae1e5115dcc68 /net/bluetooth
parent4004b6d96a14edbd157a62ae25bf61022d7caccc (diff)
downloadlinux-9246a8693e74b3480913cf6e0c2d472267169990.tar.bz2
Bluetooth: mgmt: Fix clear UUIDs response
We also need to send a proper response when clearing UUIDs. This patch adds fixes the missing response for this use case. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/mgmt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 30a30b7b301c..93f2c1348add 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -1401,7 +1401,7 @@ static int remove_uuid(struct sock *sk, u16 index, void *data, u16 len)
schedule_delayed_work(&hdev->service_cache,
msecs_to_jiffies(SERVICE_CACHE_TIMEOUT));
- goto unlock;
+ goto update_class;
}
found = 0;
@@ -1422,6 +1422,7 @@ static int remove_uuid(struct sock *sk, u16 index, void *data, u16 len)
goto unlock;
}
+update_class:
err = update_class(hdev);
if (err < 0)
goto unlock;