From: | Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx> |
Date: | Tue, 6 Apr 2004 22:45:30 -0700 (PDT) |
dillon 2004/04/06 22:45:30 PDT DragonFly src repository Modified files: sys/dev/netif/ar if_ar.c sys/dev/netif/aue if_aue.c sys/dev/netif/awi awi.c awi_wep.c sys/dev/netif/axe if_axe.c sys/dev/netif/bge if_bge.c sys/dev/netif/cs if_cs.c sys/dev/netif/cue if_cue.c sys/dev/netif/cx if_cx.c sys/dev/netif/dc if_dc.c sys/dev/netif/de if_de.c sys/dev/netif/em if_em.c sys/dev/netif/en_pci if_en_pci.c sys/dev/netif/fpa if_fpa.c sys/dev/netif/fxp if_fxp.c sys/dev/netif/ic if_ic.c sys/dev/netif/ie if_ie.c sys/dev/netif/kue if_kue.c sys/dev/netif/le if_le.c sys/dev/netif/lge if_lge.c sys/dev/netif/mii_layer mii.c sys/dev/netif/mn if_mn.c sys/dev/netif/my if_my.c sys/dev/netif/nge if_nge.c sys/dev/netif/pdq_layer pdqvar.h sys/dev/netif/plip if_plip.c sys/dev/netif/sbni if_sbni_pci.c sys/dev/netif/sk if_sk.c sys/dev/netif/sr if_sr.c sys/dev/netif/ti if_ti.c sys/dev/netif/tx if_tx.c sys/dev/netif/txp if_txp.c sys/dev/netif/wi wi_hostap.c sys/dev/netif/wx if_wxvar.h Log: General netif malloc() flags cleanup. Use M_INTWAIT or M_WAITOK instead of M_NOWAIT. Generally use M_WAITOK in the attach code or ioctl code typically called from userland, and M_INTWAIT for routines that might be called during non-boot operations. Since M*WAIT flags guarentee a non-NULL result, also remove now-unnecessary NULL checks. Revision Changes Path 1.8 +2 -2 src/sys/dev/netif/ar/if_ar.c 1.10 +2 -2 src/sys/dev/netif/aue/if_aue.c 1.12 +1 -1 src/sys/dev/netif/awi/awi.c 1.8 +1 -1 src/sys/dev/netif/awi/awi_wep.c 1.2 +1 -1 src/sys/dev/netif/axe/if_axe.c 1.19 +4 -14 src/sys/dev/netif/bge/if_bge.c 1.8 +2 -2 src/sys/dev/netif/cs/if_cs.c 1.9 +1 -3 src/sys/dev/netif/cue/if_cue.c 1.10 +8 -12 src/sys/dev/netif/cx/if_cx.c 1.11 +5 -8 src/sys/dev/netif/dc/if_dc.c 1.11 +8 -16 src/sys/dev/netif/de/if_de.c 1.10 +2 -2 src/sys/dev/netif/em/if_em.c 1.9 +1 -4 src/sys/dev/netif/en_pci/if_en_pci.c 1.8 +1 -5 src/sys/dev/netif/fpa/if_fpa.c 1.10 +3 -9 src/sys/dev/netif/fxp/if_fxp.c 1.8 +2 -2 src/sys/dev/netif/ic/if_ic.c 1.10 +1 -5 src/sys/dev/netif/ie/if_ie.c 1.9 +2 -2 src/sys/dev/netif/kue/if_kue.c 1.10 +1 -1 src/sys/dev/netif/le/if_le.c 1.10 +1 -6 src/sys/dev/netif/lge/if_lge.c 1.6 +2 -2 src/sys/dev/netif/mii_layer/mii.c 1.5 +2 -2 src/sys/dev/netif/mn/if_mn.c 1.9 +1 -1 src/sys/dev/netif/my/if_my.c 1.9 +1 -1 src/sys/dev/netif/nge/if_nge.c 1.5 +1 -1 src/sys/dev/netif/pdq_layer/pdqvar.h 1.8 +3 -13 src/sys/dev/netif/plip/if_plip.c 1.4 +3 -4 src/sys/dev/netif/sbni/if_sbni_pci.c 1.14 +5 -5 src/sys/dev/netif/sk/if_sk.c 1.9 +1 -1 src/sys/dev/netif/sr/if_sr.c 1.10 +2 -2 src/sys/dev/netif/ti/if_ti.c 1.10 +3 -11 src/sys/dev/netif/tx/if_tx.c 1.10 +2 -2 src/sys/dev/netif/txp/if_txp.c 1.7 +2 -2 src/sys/dev/netif/wi/wi_hostap.c 1.6 +1 -1 src/sys/dev/netif/wx/if_wxvar.h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/ar/if_ar.c.diff?r1=1.7&r2=1.8&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/aue/if_aue.c.diff?r1=1.9&r2=1.10&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/awi/awi.c.diff?r1=1.11&r2=1.12&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/awi/awi_wep.c.diff?r1=1.7&r2=1.8&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/axe/if_axe.c.diff?r1=1.1&r2=1.2&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/bge/if_bge.c.diff?r1=1.18&r2=1.19&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/cs/if_cs.c.diff?r1=1.7&r2=1.8&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/cue/if_cue.c.diff?r1=1.8&r2=1.9&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/cx/if_cx.c.diff?r1=1.9&r2=1.10&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/dc/if_dc.c.diff?r1=1.10&r2=1.11&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/de/if_de.c.diff?r1=1.10&r2=1.11&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/em/if_em.c.diff?r1=1.9&r2=1.10&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/en_pci/if_en_pci.c.diff?r1=1.8&r2=1.9&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/fpa/if_fpa.c.diff?r1=1.7&r2=1.8&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/fxp/if_fxp.c.diff?r1=1.9&r2=1.10&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/ic/if_ic.c.diff?r1=1.7&r2=1.8&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/ie/if_ie.c.diff?r1=1.9&r2=1.10&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/kue/if_kue.c.diff?r1=1.8&r2=1.9&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/le/if_le.c.diff?r1=1.9&r2=1.10&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/lge/if_lge.c.diff?r1=1.9&r2=1.10&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/mii_layer/mii.c.diff?r1=1.5&r2=1.6&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/mn/if_mn.c.diff?r1=1.4&r2=1.5&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/my/if_my.c.diff?r1=1.8&r2=1.9&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/nge/if_nge.c.diff?r1=1.8&r2=1.9&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/pdq_layer/pdqvar.h.diff?r1=1.4&r2=1.5&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/plip/if_plip.c.diff?r1=1.7&r2=1.8&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/sbni/if_sbni_pci.c.diff?r1=1.3&r2=1.4&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/sk/if_sk.c.diff?r1=1.13&r2=1.14&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/sr/if_sr.c.diff?r1=1.8&r2=1.9&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/ti/if_ti.c.diff?r1=1.9&r2=1.10&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/tx/if_tx.c.diff?r1=1.9&r2=1.10&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/txp/if_txp.c.diff?r1=1.9&r2=1.10&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/wi/wi_hostap.c.diff?r1=1.6&r2=1.7&f=h http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/wx/if_wxvar.h.diff?r1=1.5&r2=1.6&f=h