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: firefly_0821_release~7613^2~488 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=53fba6133266ef870ddb04138cdf746ea337c8b7;p=firefly-linux-kernel-4.4.55.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 606cb938d6db..4b19d10e5501 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: