Skip to content

Commit

Permalink
Bluetooth: Fix bacpy in l2cap_core.c
Browse files Browse the repository at this point in the history
It should be the dst in the copy not src. 03a0019 introduced this bug.

Reported-by: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
  • Loading branch information
Gustavo F. Padovan committed Jan 2, 2012
1 parent 4ae1652 commit 9219b2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9219b2a

Please sign in to comment.