Skip to content

Commit

Permalink
Bluetooth: Fix missing cmd_status in mgmt
Browse files Browse the repository at this point in the history
set_service_cache() was missing a cmd_status for the error case.

Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
  • Loading branch information
Gustavo F. Padovan committed Oct 15, 2011
1 parent c636ef5 commit e5b82e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e5b82e5

Please sign in to comment.