Check when M_PREPEND returns an empty mbuf.
authorHiten Pandya <hmp@dragonflybsd.org>
Wed, 3 Sep 2003 14:30:57 +0000 (14:30 +0000)
committerHiten Pandya <hmp@dragonflybsd.org>
Wed, 3 Sep 2003 14:30:57 +0000 (14:30 +0000)
commit1cee58178e17322bd33f133966f926ae9a65c894
tree2b7f516a845c893908393fe52adb3afea88ab996
parentf837eaa63b0cd6b38c48a9adf0ed9bb19518f132
Check when M_PREPEND returns an empty mbuf.

This is just toe-dipping.  There are so many instances like this
across the source base that more work needs to be done on it.

I have added /* XXX-MBUF */ comments in places where I could not
add checks for empty mbufs; this is helpful for future work because
it is a potential error point.

It is better to put a comment than panic() messages because it can
be used when the mbuf allocator is rewritten or is taught how to
handle memory starvation situations.
sys/netproto/atalk/aarp.c
sys/netproto/atalk/ddp_output.c
sys/vfs/nfs/nfs_nqlease.c
sys/vfs/nfs/nfs_socket.c
sys/vfs/nfs/nfs_syscalls.c