netisr_queue() needs to reliably allocate the message used to reference the
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 17 Apr 2004 00:46:28 +0000 (00:46 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 17 Apr 2004 00:46:28 +0000 (00:46 +0000)
commitf20847c96569325f797da2a4f94f1773d891e391
treed8602614fc7105a9858142ab5e5843cce20dbe4a
parent4625f023716f79390abe69b7dcbdde8f1354ed5c
netisr_queue() needs to reliably allocate the message used to reference the
mbuf so make the allocation M_WAITOK instead of M_NOWAIT.  This also fixes
an mbuf leak due to some users of netisr_queue() not checking the return
value.  Note, however, that there were and still are issues with
netisr_queue() blocking (due to occassionally waiting on kernel_map,
possible deadlock issues, and so forth).
sys/net/netisr.c