mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
mm/iob: Miscellaneous changes and fixes from code review.
This commit is contained in:
@@ -200,7 +200,7 @@ FAR struct iob_qentry_s *iob_alloc_qentry(void)
|
||||
{
|
||||
/* Were we called from the interrupt level? */
|
||||
|
||||
if (up_interrupt_context())
|
||||
if (up_interrupt_context() || sched_idletask())
|
||||
{
|
||||
/* Yes, then try to allocate an I/O buffer without waiting */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user