]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
Bluetooth: mgmt: Fix clear UUIDs response
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 23 Feb 2012 19:33:16 +0000 (21:33 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 23 Feb 2012 20:02:27 +0000 (22:02 +0200)
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>
net/bluetooth/mgmt.c

index 30a30b7b301ce18165b97801f94b2a7619146967..93f2c1348add2930ed631e4dba2d1f8b205210f5 100644 (file)
@@ -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;