From: Anderson Lizardo Date: Mon, 13 Jun 2011 19:42:03 +0000 (-0400) Subject: Bluetooth: fix missing parameter for HCI_OP_DISCONNECT X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=94ac02726cb87dd569bac4536f33e4b696b692eb;p=mv-sheeva.git Bluetooth: fix missing parameter for HCI_OP_DISCONNECT The "dc" variable is initialized but not passed to hci_send_cmd(). Signed-off-by: Anderson Lizardo Signed-off-by: Bruna Moreira Signed-off-by: Gustavo F. Padovan --- diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index fcccf10f909..d19208903be 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -990,7 +990,7 @@ static int remove_key(struct sock *sk, u16 index, unsigned char *data, u16 len) put_unaligned_le16(conn->handle, &dc.handle); dc.reason = 0x13; /* Remote User Terminated Connection */ - err = hci_send_cmd(hdev, HCI_OP_DISCONNECT, 0, NULL); + err = hci_send_cmd(hdev, HCI_OP_DISCONNECT, sizeof(dc), &dc); } unlock: