summaryrefslogtreecommitdiffstats
path: root/sys/netipx/ipx_usrreq.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-01-02 15:25:59 +0000
committerrwatson <rwatson@FreeBSD.org>2005-01-02 15:25:59 +0000
commit232fe9e06de6086ac1663d5e5f95b3a3597fed66 (patch)
tree481ad283ba3c3c798d8eb817dacd7d91f0bea735 /sys/netipx/ipx_usrreq.c
parent1a1b431cbf2d694fd8f9f16ab0ea6bf4ce674dc9 (diff)
downloadFreeBSD-src-232fe9e06de6086ac1663d5e5f95b3a3597fed66.zip
FreeBSD-src-232fe9e06de6086ac1663d5e5f95b3a3597fed66.tar.gz
Eliminate XXX comments regarding allocation failures when retrieving
the peer address by using M_WAITOK in ipx_setpeeraddr() to prevent allocation failure. The socket reference used to reach these calls will prevent the ipxpcb from being released prematurely.
Diffstat (limited to 'sys/netipx/ipx_usrreq.c')
-rw-r--r--sys/netipx/ipx_usrreq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netipx/ipx_usrreq.c b/sys/netipx/ipx_usrreq.c
index db0aadd..5a41754 100644
--- a/sys/netipx/ipx_usrreq.c
+++ b/sys/netipx/ipx_usrreq.c
@@ -531,7 +531,7 @@ ipx_peeraddr(so, nam)
{
struct ipxpcb *ipxp = sotoipxpcb(so);
- ipx_setpeeraddr(ipxp, nam); /* XXX what if alloc fails? */
+ ipx_setpeeraddr(ipxp, nam);
return (0);
}
@@ -599,7 +599,7 @@ ipx_sockaddr(so, nam)
{
struct ipxpcb *ipxp = sotoipxpcb(so);
- ipx_setsockaddr(ipxp, nam); /* XXX what if alloc fails? */
+ ipx_setsockaddr(ipxp, nam);
return (0);
}
OpenPOWER on IntegriCloud