[Bluetooth] Add locking for bt_proto array manipulation
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 15 Oct 2006 15:31:14 +0000 (17:31 +0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 16 Oct 2006 06:14:34 +0000 (23:14 -0700)
commit74da626a1098640ddc40c0e3481c0cd41e8ec1e9
tree65e6f72f07c0cccbb37b3b079d93276b061d9ade
parentcb19d9ea2ce2bcbe291d3d48e3501dc4f33ba627
[Bluetooth] Add locking for bt_proto array manipulation

The bt_proto array needs to be protected by some kind of locking to
prevent a race condition between bt_sock_create and bt_sock_register.

And in addition all calls to sk_alloc need to be made GFP_ATOMIC now.

Signed-off-by: Masatake YAMATO <jet@gyve.org>
Signed-off-by: Frederik Deweerdt <frederik.deweerdt@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/af_bluetooth.c
net/bluetooth/bnep/sock.c
net/bluetooth/cmtp/sock.c
net/bluetooth/hci_sock.c
net/bluetooth/hidp/sock.c
net/bluetooth/l2cap.c
net/bluetooth/rfcomm/sock.c
net/bluetooth/sco.c