Bluetooth: hci_event: Fix creating hci_conn object on error status
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 22 Apr 2022 19:58:17 +0000 (12:58 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 26 Apr 2022 18:10:22 +0000 (20:10 +0200)
commitaef2aa4fa98e18ea5d9345bf777ee698c8598728
tree82ba16c5657ec9358a39acf11607cef051ba2b96
parentc86cc5a3ec70f5644f1fa21610b943d0441bc1f7
Bluetooth: hci_event: Fix creating hci_conn object on error status

It is useless to create a hci_conn object if on error status as the
result would be it being freed in the process and anyway it is likely
the result of controller and host stack being out of sync.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_event.c