* [PATCH] Bluetooth: fix missing parameter for HCI_OP_DISCONNECT
@ 2011-06-13 19:42 Anderson Lizardo
2011-06-13 19:49 ` Gustavo F. Padovan
0 siblings, 1 reply; 2+ messages in thread
From: Anderson Lizardo @ 2011-06-13 19:42 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Anderson Lizardo, Bruna Moreira
The "dc" variable is initialized but not passed to hci_send_cmd().
Signed-off-by: Anderson Lizardo <anderson.lizardo@openbossa.org>
Signed-off-by: Bruna Moreira <bruna.moreira@openbossa.org>
---
Note: Only compile tested.
net/bluetooth/mgmt.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index fcccf10..d192089 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:
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Bluetooth: fix missing parameter for HCI_OP_DISCONNECT
2011-06-13 19:42 [PATCH] Bluetooth: fix missing parameter for HCI_OP_DISCONNECT Anderson Lizardo
@ 2011-06-13 19:49 ` Gustavo F. Padovan
0 siblings, 0 replies; 2+ messages in thread
From: Gustavo F. Padovan @ 2011-06-13 19:49 UTC (permalink / raw)
To: Anderson Lizardo; +Cc: linux-bluetooth, Bruna Moreira
Hi Anderson,
* Anderson Lizardo <anderson.lizardo@openbossa.org> [2011-06-13 15:42:03 -0400]:
> The "dc" variable is initialized but not passed to hci_send_cmd().
>
> Signed-off-by: Anderson Lizardo <anderson.lizardo@openbossa.org>
> Signed-off-by: Bruna Moreira <bruna.moreira@openbossa.org>
> ---
> Note: Only compile tested.
>
> net/bluetooth/mgmt.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Applied, thanks.
Gustavo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-13 19:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-13 19:42 [PATCH] Bluetooth: fix missing parameter for HCI_OP_DISCONNECT Anderson Lizardo
2011-06-13 19:49 ` Gustavo F. Padovan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox