Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: buf: Fix net_buf struct issue due to frags and node elem union
net_buf elements are used in net_pool which are based on lifo implementation. Yet, net_buf structure doesn't respect lifo requierement that the first word must be reserved for the lifo kernel implementation. In most cases, this is fine as this word is mostly accessed when the element is not allocated, however, this is not always true. In such situation, node element is written, ehnce frags element value is not NULL anymore and anything might happen... This fixes zephyrproject-rtos#38829 issue. Signed-off-by: Xavier Chapron <xavier.chapron@stimio.fr>
- Loading branch information