projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da85e5e
)
Bluetooth: fix missing parameter for HCI_OP_DISCONNECT
author
Anderson Lizardo
<anderson.lizardo@openbossa.org>
Mon, 13 Jun 2011 19:42:03 +0000
(15:42 -0400)
committer
Gustavo F. Padovan
<padovan@profusion.mobi>
Mon, 13 Jun 2011 19:48:42 +0000
(16:48 -0300)
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>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/mgmt.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/mgmt.c
b/net/bluetooth/mgmt.c
index fcccf10f909a718a88292a530817d9c963163209..d19208903be40e0d9e3ad0718280e7e3df3d98c3 100644
(file)
--- 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: