]> 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)
commitbbd57faf2bdcd6c99a2e3feec2d73c809529eba6
tree82ba16c5657ec9358a39acf11607cef051ba2b96
parent29e7f43dfab0e0b2e36f4519964a0a076515fa78
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