diff options
| -rw-r--r-- | net/sctp/stream_interleave.c | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/net/sctp/stream_interleave.c b/net/sctp/stream_interleave.c index 65ac03b44df8..d3764c181299 100644 --- a/net/sctp/stream_interleave.c +++ b/net/sctp/stream_interleave.c @@ -968,9 +968,8 @@ static void sctp_renege_events(struct sctp_ulpq *ulpq, struct sctp_chunk *chunk,  						       needed);  	} -	if (chunk && freed >= needed) -		if (sctp_ulpevent_idata(ulpq, chunk, gfp) <= 0) -			sctp_intl_start_pd(ulpq, gfp); +	if (freed >= needed && sctp_ulpevent_idata(ulpq, chunk, gfp) <= 0) +		sctp_intl_start_pd(ulpq, gfp);  	sk_mem_reclaim(asoc->base.sk);  } |