Skip to content

Commit

Permalink
Bluetooth: mgmt: Fix clear UUIDs response
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johan Hedberg committed Feb 23, 2012
1 parent 4004b6d commit 9246a86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 9246a86

Please sign in to comment.