bluetooth: fix race in bt_procfs_init()
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 4 Apr 2013 23:16:06 +0000 (19:16 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 9 Apr 2013 18:13:36 +0000 (14:13 -0400)
commit4d006263d3d61413e63784a454b6e3310bd8e6ee
tree296c5d8c50ec3ddd32ca196159158c3f2431864a
parentb03166152f6da91cec8b66837b309dd3923ea536
bluetooth: fix race in bt_procfs_init()

use proc_create_data() rather than set ->data after the file has
been created

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
net/bluetooth/af_bluetooth.c