CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2011/06/17 01:06:47
Modified files:
sys/arch/alpha/eisa: eisa_machdep.c
sys/arch/macppc/macppc: openprom.c
sys/arch/sparc64/sparc64: openprom.c
sys/dev : softraid_crypto.c
sys/dev/bluetooth: bthidev.c
sys/dev/ic : mpi.c
sys/dev/isa : ega.c
sys/dev/pci : emuxki.c isp_pci.c mpii.c
sys/dev/pci/drm: drm_drv.c
sys/dev/usb : hid.c if_wi_usb.c umidi.c uticom.c uvideo.c
sys/netinet6 : nd6.c
sys/nnpfs : nnpfs_syscalls-common.c nnpfs_vfsops-common.c
nnpfs_vnodeops-common.c
sys/scsi : mpath.c
Log message:
M_WAITOK cleanup of two cases:
1) Allocating with M_WAITOK, checking for NULL, and calling panic() is
pointless (malloc() will panic if it can't allocate) so remove the check
and the call.
2) Allocating with M_WAITOK, checking for NULL, and then gracefully
handling failure to allocate is pointless. Instead also pass M_CANFAIL
so malloc() doesn't panic so we can actually handle it gracefully.
1) was done using Coccinelle.
Input from oga.
ok miod.