summaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/hci_core.h
diff options
context:
space:
mode:
authorJohan Hedberg2012-02-19 13:06:48 +0100
committerJohan Hedberg2012-02-19 13:22:11 +0100
commit48c7aba91f372251867d15efc9cf694ceee2de02 (patch)
tree457ae2383babe549913ee00c40370d978bd243ef /include/net/bluetooth/hci_core.h
parentBluetooth: mgmt: Bump mgmt version (diff)
downloadkernel-qcow2-linux-48c7aba91f372251867d15efc9cf694ceee2de02.tar.gz
kernel-qcow2-linux-48c7aba91f372251867d15efc9cf694ceee2de02.tar.xz
kernel-qcow2-linux-48c7aba91f372251867d15efc9cf694ceee2de02.zip
Bluetooth: Fix hci_connect error return values
The hci_connect function should either return a valid hci_conn pointer or a ERR_PTR() but never NULL. This patch fixes the two places where hci_conn_add failures would have caused a NULL return. The only reason for failure with hci_conn_add is memory allocation so ENOMEM seems to be a good choice here. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth/hci_core.h')
0 files changed, 0 insertions, 0 deletions