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)
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

Simple merge