Skip to content
Commit 0034e125 authored by Axel Le Bourhis's avatar Axel Le Bourhis Committed by Benjamin Cabé
Browse files

drivers: bluetooth: hci_nxp: fix nomem handling



When allocation fails in `hci_rx_cb`, we should return immediately
instead of continuing the execution of the function.

Also, we need to free the allocated buffer from the heap when sending
to the message queue fails to avoid memory leak.

Signed-off-by: default avatarAxel Le Bourhis <axel.lebourhis@nxp.com>
parent 70f55bcc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment