Thread (8 messages) 8 messages, 2 authors, 2014-01-28

Re: [PATCH 1/4] Bluetooth: Free up l2cap_chan->sport when initiating a connection

flat view

From: Marcel Holtmann <marcel@holtmann.org>
Date: 2014-01-28 23:28:53

Hi Johan,
The sport variable is used to track the allocation of the local PSM
database to ensure no two sockets take the same local PSM. It is
acquired upon bind() but needs to be freed up if the socket ends up
becoming a client one. This patch adds the clearing of the value when
l2cap_chan_connect is called.

Signed-off-by: Johan Hedberg <redacted>
---
net/bluetooth/l2cap_core.c | 7 +++++++
1 file changed, 7 insertions(+)
patch has been applied to bluetooth-next tree.

Regards

Marcel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help