Re: [PATCH] sctp: copy zeroed stats to user in sctp_getsockopt_pr_streamstatus() when !streamoute

From: Paolo Abeni

Date: Thu Sep 24 2026 - 06:32:08 EST


On 9/19/26 23:36, Hui Peng wrote:
@@ -7589,6 +7585,8 @@ static int sctp_getsockopt_pr_streamstatus(struct sock *sk, int len,
streamoute->abandoned_sent[__SCTP_PR_INDEX(policy)];
}
+ retval = 0;
+

AFAICS the above is not needed; retval will be zeroed later, if in case of
no errors.

Also this is IMHO net-next material with no fixes tag.

/P