]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[Bluetooth] Add locking for bt_proto array manipulation
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 25 Jan 2007 19:38:15 +0000 (20:38 +0100)
committerAdrian Bunk <bunk@stusta.de>
Fri, 26 Jan 2007 19:49:22 +0000 (20:49 +0100)
commitc2afb6058b25bc201d7ca24e2541941d09d03ae9
tree97fcec4a42a3d4faa21ca188b74cba4ccd1a533c
parentac4d63dab8bb425f1ae037abf349090c12f16883
[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>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
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