diff options
author | Michael Tuexen <tuexen@FreeBSD.org> | 2012-01-14 09:10:20 +0000 |
---|---|---|
committer | Michael Tuexen <tuexen@FreeBSD.org> | 2012-01-14 09:10:20 +0000 |
commit | 8de4bcc1f7c1a84ce1f34594d99cc18cf9087c9e (patch) | |
tree | 86a798edef6e7df8bc67e4f3cabac22c5f6e708c /sys/netinet/sctp_usrreq.c | |
parent | 61d4638e524808ea9a40750df968a4f3c8b416b7 (diff) | |
download | src-8de4bcc1f7c1a84ce1f34594d99cc18cf9087c9e.tar.gz src-8de4bcc1f7c1a84ce1f34594d99cc18cf9087c9e.zip |
Notes
Diffstat (limited to 'sys/netinet/sctp_usrreq.c')
-rw-r--r-- | sys/netinet/sctp_usrreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c index 3f3c62d173e6..c08872c73870 100644 --- a/sys/netinet/sctp_usrreq.c +++ b/sys/netinet/sctp_usrreq.c @@ -3019,7 +3019,7 @@ flags_out: SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_USRREQ, EINVAL); error = EINVAL; } else { - SCTP_INP_RUNLOCK(inp); + SCTP_INP_RLOCK(inp); onoff = sctp_is_feature_on(inp, SCTP_PCB_FLAGS_RECVRCVINFO); SCTP_INP_RUNLOCK(inp); } @@ -3038,7 +3038,7 @@ flags_out: SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_USRREQ, EINVAL); error = EINVAL; } else { - SCTP_INP_RUNLOCK(inp); + SCTP_INP_RLOCK(inp); onoff = sctp_is_feature_on(inp, SCTP_PCB_FLAGS_RECVNXTINFO); SCTP_INP_RUNLOCK(inp); } |