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:
parent
64de50f052
commit
641b77b740
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue