Skip to content
Commit d09009d7 authored by Dominik Ermel's avatar Dominik Ermel Committed by Johan Hedberg
Browse files

subsys/mgmt: Fix incorrect buffer space check



zephyr_smp_write_at is supposed to write len bytes of data at
the offset of a given net_buf, overwriting existing data and extending
beyond current buffer length, if needed. Unfortunately condition
checking if written data would fit within the buffer size has been
incorrectly implemented, making write impossible, when there has been
less bytes of space left within buffer tailroom than required to write
len bytes of data, even if len bytes written starting at given offset
would not cross the buffer boundary.

Signed-off-by: default avatarDominik Ermel <dominik.ermel@nordicsemi.no>
parent d6373a38
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment