zephyr/drivers/bluetooth
Johan Hedberg c96f8e484c Bluetooth: Fix potential NULL-pointer access in UART driver
If we get an invalid packet type here the buf pointer will be NULL.
Going to the cleanup section at the end of the function would trigger
a bt_but_put() call which would cause a NULL pointer access. Directly
returning from the function is the right thing to do instead.

Change-Id: I0c18646e0820cf829ef8aa3f77835ba0a14375b5
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-02-05 20:13:50 -05:00
..
uart.c Bluetooth: Fix potential NULL-pointer access in UART driver 2016-02-05 20:13:50 -05:00
uart.h Bluetooth: Add HCI UART (H4) driver 2016-02-05 20:13:44 -05:00