zephyr/drivers
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
..
bluetooth Bluetooth: Fix potential NULL-pointer access in UART driver 2016-02-05 20:13:50 -05:00
console console: Put the public API header in the right location 2016-02-05 20:13:48 -05:00
interrupt_controller First commit 2015-04-10 16:44:37 -07:00
pci pci: Put the public API header in the right location 2016-02-05 20:13:48 -05:00
random First commit 2015-04-10 16:44:37 -07:00
serial uart: Rename INTERRUPT_DRIVEN configuration option 2016-02-05 20:13:41 -05:00
timer Rename _SysIdleElapsedTicks to _sys_idle_elapsed_ticks 2016-02-05 20:13:44 -05:00
defs.objs First commit 2015-04-10 16:44:37 -07:00