Skip to content
Commit 16d8f59c authored by Jukka Rissanen's avatar Jukka Rissanen
Browse files

net: nbuf: Do no use timeout if called from isr



The net_nbuf_get*() functions were calling net_buf_alloc()
with K_FOREVER. This can cause issue if called from isr
context. The fix is to check if we are in isr and then try
to alloc net_buf with K_NO_WAIT.

Change-Id: I809170f2cd059480d436763e19a35386d9bdf048
Signed-off-by: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
parent 88405fcd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment