diff options
author | tuexen <tuexen@FreeBSD.org> | 2016-04-18 20:16:41 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2016-04-18 20:16:41 +0000 |
commit | f78898772ae074bd56c82e718089c92d7c835dc9 (patch) | |
tree | 4911d614972c83d1829069c1794e0eff8c2a5358 /sys/netinet/sctputil.c | |
parent | 646427c19fa818a4d7c4f823760a9397fd5a6b28 (diff) | |
download | FreeBSD-src-f78898772ae074bd56c82e718089c92d7c835dc9.zip FreeBSD-src-f78898772ae074bd56c82e718089c92d7c835dc9.tar.gz |
Address issues found by the XCode code analyzer.
Diffstat (limited to 'sys/netinet/sctputil.c')
-rw-r--r-- | sys/netinet/sctputil.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c index 2af9f03..eab0320 100644 --- a/sys/netinet/sctputil.c +++ b/sys/netinet/sctputil.c @@ -4454,9 +4454,15 @@ sctp_pull_off_control_to_new_inp(struct sctp_inpcb *old_inp, } void -sctp_wakeup_the_read_socket(struct sctp_inpcb *inp) +sctp_wakeup_the_read_socket(struct sctp_inpcb *inp, + struct sctp_tcb *stcb, + int so_locked +#if !defined(__APPLE__) && !defined(SCTP_SO_LOCK_TESTING) + SCTP_UNUSED +#endif +) { - if (inp && inp->sctp_socket) { + if ((inp != NULL) && (inp->sctp_socket != NULL)) { if (sctp_is_feature_on(inp, SCTP_PCB_FLAGS_ZERO_COPY_ACTIVE)) { SCTP_ZERO_COPY_EVENT(inp, inp->sctp_socket); } else { @@ -4584,7 +4590,7 @@ sctp_add_to_readq(struct sctp_inpcb *inp, if (inp_read_lock_held == 0) SCTP_INP_READ_UNLOCK(inp); if (inp && inp->sctp_socket) { - sctp_wakeup_the_read_socket(inp); + sctp_wakeup_the_read_socket(inp, stcb, so_locked); } } |