Bluetooth: Forward errors from hci_register_dev
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 8 Oct 2011 12:58:49 +0000 (14:58 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Fri, 14 Oct 2011 18:22:44 +0000 (15:22 -0300)
commit33ca954daf1ac03c86237b73235d8b0856d84981
tree6898afeb560eb56f5ef9442b0ea6dece577e2ea9
parentce242970f0934869483221c410d09c00bc8967e7
Bluetooth: Forward errors from hci_register_dev

We need to catch errors when calling hci_add_sysfs() and return them to
the caller to avoid kernel oopses on device_add() failure.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/hci_core.c