From: Johan Hedberg Date: Sun, 19 Feb 2012 12:06:48 +0000 (+0200) Subject: Bluetooth: Fix hci_connect error return values X-Git-Tag: v3.4-rc1~177^2~112^2~123 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48c7aba91f372251867d15efc9cf694ceee2de02;p=pandora-kernel.git 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 Acked-by: Marcel Holtmann --- Reading git-diff-tree failed