]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd67aa2c1938c12b5d4059fe188bbff07ac69cfce
tree82ba16c5657ec9358a39acf11607cef051ba2b96
parent4be9e84b44177ddf530eba3b3493ddd9a1ed972d
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