Bluetooth: use l2cap_chan_set_err()
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Sat, 6 Oct 2012 10:34:52 +0000 (11:34 +0100)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Fri, 12 Oct 2012 10:21:00 +0000 (18:21 +0800)
commit1d8b1fd55aa1dfa9edd74ebb467db9358fa56f8a
tree9ad594ce022c6db60e97db3d1587335ed64eef35
parent8bcde1f2ab732a7d7db1de854dcc0747ffecb7c2
Bluetooth: use l2cap_chan_set_err()

l2cap_conn_unreliable() doesn't take the sk lock, so we need to take it
using l2cap_chan_set_err().

Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/l2cap_core.c