Bluetooth: samples: hci_ipc: Fix incorrect NULL pointer check

The condition was the inverse of what it should have been, leading to an
inevitable NULL pointer dereference later.

Signed-off-by: Johan Hedberg <johan.hedberg@gmail.com>
This commit is contained in:
Johan Hedberg 2024-05-27 11:14:20 +03:00 committed by Carles Cufí
commit 641b77b740

View file

@ -294,7 +294,7 @@ void bt_ctlr_assert_handle(char *file, uint32_t line)
struct net_buf *buf;
buf = hci_vs_err_assert(file, line);
if (buf == NULL) {
if (buf != NULL) {
/* Send the event over ipc */
hci_ipc_send(buf, HCI_FATAL_ERR_MSG);
} else {