M_NOWAIT -> M_WAITOK or M_INTWAIT conversions. There is a whole lot of net
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 22 Apr 2004 04:22:06 +0000 (04:22 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 22 Apr 2004 04:22:06 +0000 (04:22 +0000)
commit02334e235bf1f2a1d0684cdfc817d6f3c8697edd
treea6daa65e35852e1f9fb5311330b61457e5348ea4
parentcf4e130b72902adf6d8e852d68a51c91cd046c8d
M_NOWAIT -> M_WAITOK or M_INTWAIT conversions.  There is a whole lot of net
code that is improperly using M_NOWAIT.  Also remove now unneeded NULL checks
since malloc will panic rather then return NULL when M_NULLOK is not set.

Use M_INTWAIT|M_NULLOK in some cases (such as route table allocation) in
order to allow malloc to return NULL when the limit for the malloc type
is reached.
17 files changed:
sys/net/bpf.c
sys/net/bridge/bridge.c
sys/net/bsd_comp.c
sys/net/dummynet/ip_dummynet.c
sys/net/i4b/driver/i4b_ing.c
sys/net/if_media.c
sys/net/ip6fw/ip6_fw.c
sys/net/ip_mroute/ip_mroute.c
sys/net/ipfw/ip_fw.c
sys/net/ipfw/ip_fw2.c
sys/net/oldbridge/bridge.c
sys/net/ppp/if_ppp.c
sys/net/ppp_layer/ppp_deflate.c
sys/net/radix.h
sys/net/rtsock.c
sys/net/sl/if_sl.c
sys/net/sppp/if_spppsubr.c