Bluetooth: Host: Fix crash if HCI send fails
bt_dev.sent_cmd is unreferenced and assigned NULL within hci_cmd_done().
Calling net_buf_unref() again causes a null pointer dereference
Signed-off-by:
Grant Ramsay <grant.ramsay@hotmail.com>
Loading
Please sign in to comment