Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5b82e58 authored by Gustavo Padovan's avatar Gustavo Padovan
Browse files

Bluetooth: Fix missing cmd_status in mgmt



set_service_cache() was missing a cmd_status for the error case.

Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent c636ef58
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);