diff options
author | Michael Tuexen <tuexen@FreeBSD.org> | 2011-12-27 10:16:24 +0000 |
---|---|---|
committer | Michael Tuexen <tuexen@FreeBSD.org> | 2011-12-27 10:16:24 +0000 |
commit | 60990c0c060ca786f943cc978d4be566a1939d50 (patch) | |
tree | ce50f6b6186eabeaf9efcd3c9f23634ecb1ea357 /sys/netinet/sctp_sysctl.c | |
parent | d4ae5eb992f56999d5a561f423d357ae0d0d743b (diff) | |
download | src-test2-60990c0c060ca786f943cc978d4be566a1939d50.tar.gz src-test2-60990c0c060ca786f943cc978d4be566a1939d50.zip |
Notes
Diffstat (limited to 'sys/netinet/sctp_sysctl.c')
-rw-r--r-- | sys/netinet/sctp_sysctl.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/netinet/sctp_sysctl.c b/sys/netinet/sctp_sysctl.c index 4716bab413ce..0ae50f7120fe 100644 --- a/sys/netinet/sctp_sysctl.c +++ b/sys/netinet/sctp_sysctl.c @@ -388,12 +388,12 @@ sctp_assoclist(SYSCTL_HANDLER_ARGS) /* request some more memory than needed */ req->oldidx = (n + n / 8); - return 0; + return (0); } if (req->newptr != USER_ADDR_NULL) { SCTP_INP_INFO_RUNLOCK(); SCTP_LTRACE_ERR_RET(NULL, NULL, NULL, SCTP_FROM_SCTP_SYSCTL, EPERM); - return EPERM; + return (EPERM); } LIST_FOREACH(inp, &SCTP_BASE_INFO(listhead), sctp_list) { SCTP_INP_RLOCK(inp); @@ -424,14 +424,14 @@ sctp_assoclist(SYSCTL_HANDLER_ARGS) error = SYSCTL_OUT(req, &xinpcb, sizeof(struct xsctp_inpcb)); if (error) { SCTP_INP_DECR_REF(inp); - return error; + return (error); } SCTP_INP_INFO_RLOCK(); SCTP_INP_RLOCK(inp); error = copy_out_local_addresses(inp, NULL, req); if (error) { SCTP_INP_DECR_REF(inp); - return error; + return (error); } LIST_FOREACH(stcb, &inp->sctp_asoc_list, sctp_tcblist) { SCTP_TCB_LOCK(stcb); @@ -475,7 +475,7 @@ sctp_assoclist(SYSCTL_HANDLER_ARGS) if (error) { SCTP_INP_DECR_REF(inp); atomic_subtract_int(&stcb->asoc.refcnt, 1); - return error; + return (error); } SCTP_INP_INFO_RLOCK(); SCTP_INP_RLOCK(inp); @@ -483,7 +483,7 @@ sctp_assoclist(SYSCTL_HANDLER_ARGS) if (error) { SCTP_INP_DECR_REF(inp); atomic_subtract_int(&stcb->asoc.refcnt, 1); - return error; + return (error); } TAILQ_FOREACH(net, &stcb->asoc.nets, sctp_next) { xraddr.last = 0; @@ -509,7 +509,7 @@ sctp_assoclist(SYSCTL_HANDLER_ARGS) if (error) { SCTP_INP_DECR_REF(inp); atomic_subtract_int(&stcb->asoc.refcnt, 1); - return error; + return (error); } SCTP_INP_INFO_RLOCK(); SCTP_INP_RLOCK(inp); @@ -522,7 +522,7 @@ sctp_assoclist(SYSCTL_HANDLER_ARGS) error = SYSCTL_OUT(req, &xraddr, sizeof(struct xsctp_raddr)); if (error) { SCTP_INP_DECR_REF(inp); - return error; + return (error); } SCTP_INP_INFO_RLOCK(); SCTP_INP_RLOCK(inp); @@ -534,7 +534,7 @@ sctp_assoclist(SYSCTL_HANDLER_ARGS) xstcb.last = 1; error = SYSCTL_OUT(req, &xstcb, sizeof(struct xsctp_tcb)); if (error) { - return error; + return (error); } skip: SCTP_INP_INFO_RLOCK(); @@ -544,7 +544,7 @@ skip: memset((void *)&xinpcb, 0, sizeof(struct xsctp_inpcb)); xinpcb.last = 1; error = SYSCTL_OUT(req, &xinpcb, sizeof(struct xsctp_inpcb)); - return error; + return (error); } |