zephyr/subsys
Ding Tao 6caf6964cd net: pkt: Fix possible division by zero
When net debugging is enabled, the count variable is initialized to -1.
This may cause division by zero if there is only one fragment in pkt.
Solve this by setting the count to 0 and checking the value before the
print at the end of the function.

Successfully tested on STM32F407 SoC.

Signed-off-by: Ding Tao <miyatsu@qq.com>
2017-11-28 12:28:10 -05:00
..
bluetooth Bluetooth: Mesh: Fix Friend messaging state tracking 2017-11-28 17:17:48 +02:00
console kbuild: Removed KBuild 2017-11-08 20:00:22 -05:00
cpp kbuild: Removed KBuild 2017-11-08 20:00:22 -05:00
debug kconfig: move GDB_INFO kconfig to subsys/debug 2017-11-27 22:15:30 -05:00
dfu kbuild: Removed KBuild 2017-11-08 20:00:22 -05:00
disk kbuild: Removed KBuild 2017-11-08 20:00:22 -05:00
fs kbuild: Removed KBuild 2017-11-08 20:00:22 -05:00
logging kbuild: Removed KBuild 2017-11-08 20:00:22 -05:00
net net: pkt: Fix possible division by zero 2017-11-28 12:28:10 -05:00
random subsys: random: Fix semaphore initial count of xoroshiro128 2017-11-15 15:47:10 -06:00
shell shell: Fix looking up help for the current module 2017-11-15 16:04:39 +02:00
usb usb: netusb: Use lower addresses for default endpoint config 2017-11-10 13:10:00 -05:00
CMakeLists.txt Introduce cmake-based rewrite of KBuild 2017-11-08 20:00:22 -05:00
Kconfig subsys: Add random subsystem 2017-11-01 08:26:29 -04:00