From: Anderson Lizardo Date: Mon, 13 Jun 2011 19:42:03 +0000 (-0400) Subject: Bluetooth: fix missing parameter for HCI_OP_DISCONNECT X-Git-Tag: 2.1b_release~2467 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be149f0011fa8b8972f0488f95aadf80645977eb;p=kernel%2Fkernel-mfld-blackbay.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 606cb93..4b19d10 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: