Hi Johan, > 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@xxxxxxxxx> > --- > net/bluetooth/hci_conn.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) Acked-by: Marcel Holtmann <marcel@xxxxxxxxxxxx> Regards Marcel -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html