mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-12 08:00:09 +00:00
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>
This commit is contained in:
parent
c636ef5886
commit
e5b82e5892
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user