commit | 03a001948166d966d0d580cddb8ae3a23f8b795b | [log] [tgz] |
---|---|---|
author | Gustavo F. Padovan <padovan@profusion.mobi> | Fri Dec 09 04:48:17 2011 -0200 |
committer | Gustavo F. Padovan <padovan@profusion.mobi> | Sun Dec 18 17:07:57 2011 -0200 |
tree | 341ca43e5feca84870e874eecfc03881e60179d5 | |
parent | f878fcad1760247c054a9c80964d0b7450d2379b [diff] |
Bluetooth: invert locking order in connect path This move some checking code that was in l2cap_sock_connect() to l2cap_chan_connect(). Thus we can invert the lock calls, i.e., call lock_sock() before hci_dev_lock() to avoid a deadlock scenario. Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>