diff options
author | bmilekic <bmilekic@FreeBSD.org> | 2001-04-05 04:20:48 +0000 |
---|---|---|
committer | bmilekic <bmilekic@FreeBSD.org> | 2001-04-05 04:20:48 +0000 |
commit | cd9ec299e38483f5740e11e6b30f03f0c20fbb2b (patch) | |
tree | 51a9ee895c538b5fdf371d9dcfeabc8b80188cc0 /sys/netnatm | |
parent | 4276114c648a2866285aca4b18faa6bec9758c6b (diff) | |
download | FreeBSD-src-cd9ec299e38483f5740e11e6b30f03f0c20fbb2b.zip FreeBSD-src-cd9ec299e38483f5740e11e6b30f03f0c20fbb2b.tar.gz |
Change a couple of M_WAITOKs used in M_PREPEND() to M_TRYWAITs, which
is what they should be. As the returned mbuf is already checked for
failure of M_PREPEND even in the wait case, nothing more to be done
here.
Diffstat (limited to 'sys/netnatm')
-rw-r--r-- | sys/netnatm/natm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netnatm/natm.c b/sys/netnatm/natm.c index 99a567f..257aa76 100644 --- a/sys/netnatm/natm.c +++ b/sys/netnatm/natm.c @@ -299,7 +299,7 @@ natm_usr_send(struct socket *so, int flags, struct mbuf *m, * send the data. we must put an atm_pseudohdr on first */ - M_PREPEND(m, sizeof(*aph), M_WAITOK); + M_PREPEND(m, sizeof(*aph), M_TRYWAIT); if (m == NULL) { error = ENOBUFS; goto out; @@ -598,7 +598,7 @@ struct proc *p; * send the data. we must put an atm_pseudohdr on first */ - M_PREPEND(m, sizeof(*aph), M_WAITOK); + M_PREPEND(m, sizeof(*aph), M_TRYWAIT); if (m == NULL) { error = ENOBUFS; break; |