diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2012-01-02 17:08:04 -0500 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2012-01-02 17:08:04 -0500 |
commit | 9219b2a08c8a1ca9935b85ec4ab119bb55b0cb15 (patch) | |
tree | c1c14e8cb44cb944df657a3540445d3a3b5cb316 /net | |
parent | 4ae1652ef1bf38e07caa5d1d86ffd3b31103b55a (diff) |
Bluetooth: Fix bacpy in l2cap_core.c
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/l2cap_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index cd7bb3d7f2b4..d66aea8ad763 100644 --- 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 | |||
1190 | } | 1190 | } |
1191 | 1191 | ||
1192 | /* Set destination address and psm */ | 1192 | /* Set destination address and psm */ |
1193 | bacpy(&bt_sk(sk)->dst, src); | 1193 | bacpy(&bt_sk(sk)->dst, dst); |
1194 | chan->psm = psm; | 1194 | chan->psm = psm; |
1195 | chan->dcid = cid; | 1195 | chan->dcid = cid; |
1196 | 1196 | ||