cvs commit: src/sys/net bpf.c bsd_comp.c if_media.c radix.h rtsock.c src/sys/net/bridge bridge.c src/sys/net/dummynet ip_dummynet.c src/sys/net/i4b/driver i4b_ing.c src/sys/net/ip6fw ip6_fw.c src/sys/net/ip_mroute ip_mroute.c src/sys/net/ipfw ...
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed Apr 21 21:22:56 PDT 2004
dillon 2004/04/21 21:22:06 PDT
DragonFly src repository
Modified files:
sys/net bpf.c bsd_comp.c if_media.c radix.h
rtsock.c
sys/net/bridge bridge.c
sys/net/dummynet ip_dummynet.c
sys/net/i4b/driver i4b_ing.c
sys/net/ip6fw ip6_fw.c
sys/net/ip_mroute ip_mroute.c
sys/net/ipfw ip_fw.c ip_fw2.c
sys/net/ppp if_ppp.c
sys/net/ppp_layer ppp_deflate.c
sys/net/sl if_sl.c
sys/net/sppp if_spppsubr.c
Log:
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.
Revision Changes Path
1.15 +2 -3 src/sys/net/bpf.c
1.5 +2 -8 src/sys/net/bsd_comp.c
1.6 +1 -4 src/sys/net/if_media.c
1.5 +1 -1 src/sys/net/radix.h
1.12 +2 -2 src/sys/net/rtsock.c
1.7 +5 -22 src/sys/net/bridge/bridge.c
1.8 +12 -40 src/sys/net/dummynet/ip_dummynet.c
1.5 +5 -2 src/sys/net/i4b/driver/i4b_ing.c
1.7 +2 -8 src/sys/net/ip6fw/ip6_fw.c
1.10 +11 -11 src/sys/net/ip_mroute/ip_mroute.c
1.9 +1 -6 src/sys/net/ipfw/ip_fw.c
1.11 +1 -6 src/sys/net/ipfw/ip_fw2.c
1.17 +2 -3 src/sys/net/ppp/if_ppp.c
1.5 +3 -7 src/sys/net/ppp_layer/ppp_deflate.c
1.12 +1 -5 src/sys/net/sl/if_sl.c
1.13 +11 -29 src/sys/net/sppp/if_spppsubr.c
http://www.dragonflybsd.org/cvsweb/src/sys/net/bpf.c.diff?r1=1.14&r2=1.15&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/net/bsd_comp.c.diff?r1=1.4&r2=1.5&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/net/if_media.c.diff?r1=1.5&r2=1.6&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/net/radix.h.diff?r1=1.4&r2=1.5&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/net/rtsock.c.diff?r1=1.11&r2=1.12&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/net/bridge/bridge.c.diff?r1=1.6&r2=1.7&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/net/dummynet/ip_dummynet.c.diff?r1=1.7&r2=1.8&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/net/i4b/driver/i4b_ing.c.diff?r1=1.4&r2=1.5&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/net/ip6fw/ip6_fw.c.diff?r1=1.6&r2=1.7&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/net/ip_mroute/ip_mroute.c.diff?r1=1.9&r2=1.10&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/net/ipfw/ip_fw.c.diff?r1=1.8&r2=1.9&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/net/ipfw/ip_fw2.c.diff?r1=1.10&r2=1.11&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/net/ppp/if_ppp.c.diff?r1=1.16&r2=1.17&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/net/ppp_layer/ppp_deflate.c.diff?r1=1.4&r2=1.5&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/net/sl/if_sl.c.diff?r1=1.11&r2=1.12&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/net/sppp/if_spppsubr.c.diff?r1=1.12&r2=1.13&f=h
More information about the Commits
mailing list