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:
4ae1652
)
Bluetooth: Fix bacpy in l2cap_core.c
author
Gustavo F. Padovan
<padovan@profusion.mobi>
Mon, 2 Jan 2012 22:08:04 +0000
(20:08 -0200)
committer
Gustavo F. Padovan
<padovan@profusion.mobi>
Mon, 2 Jan 2012 22:08:04 +0000
(20:08 -0200)
It should be the dst in the copy not src.
03a001948
introduced this bug.
Reported-by: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/l2cap_core.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/l2cap_core.c
b/net/bluetooth/l2cap_core.c
index cd7bb3d7f2b4de657a997a0362b0c03917ba889f..d66aea8ad7637e350a86242acb2ae125652cd20b 100644
(file)
--- a/
net/bluetooth/l2cap_core.c
+++ b/
net/bluetooth/l2cap_core.c
@@
-1190,7
+1190,7
@@
inline int l2cap_chan_connect(struct l2cap_chan *chan, __le16 psm, u16 cid, bdad
}
/* Set destination address and psm */
- bacpy(&bt_sk(sk)->dst,
src
);
+ bacpy(&bt_sk(sk)->dst,
dst
);
chan->psm = psm;
chan->dcid = cid;