aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2016-09-15 07:41:48 +0000
committerKevin Lo <kevlo@FreeBSD.org>2016-09-15 07:41:48 +0000
commitc3bef61e584084a8f86fba71cb344f15fc20491c (patch)
treee55fa8ff38c04c3cbeb8c1f0965d9bc0213f4d61 /sys/netinet/udp_usrreq.c
parent6c6e3889290a73ddae85c68de44d928a838501ed (diff)
downloadsrc-c3bef61e584084a8f86fba71cb344f15fc20491c.tar.gz
src-c3bef61e584084a8f86fba71cb344f15fc20491c.zip
Remove the 4.3BSD compatible macro m_copy(), use m_copym() instead.
Reviewed by: gnn Differential Revision: https://reviews.freebsd.org/D7878
Notes
Notes: svn path=/head/; revision=305824
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index ce8847d40592..04d116d82243 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -597,7 +597,8 @@ udp_input(struct mbuf **mp, int *offp, int proto)
if (last != NULL) {
struct mbuf *n;
- if ((n = m_copy(m, 0, M_COPYALL)) != NULL) {
+ if ((n = m_copym(m, 0, M_COPYALL, M_NOWAIT)) !=
+ NULL) {
UDP_PROBE(receive, NULL, last, ip,
last, uh);
if (udp_append(last, ip, n, iphlen,