Skip to content

Commit 08f4607

Browse files
lxindavem330
authored andcommitted
sctp: force SCTP_ERROR_INV_STRM with __u32 when calling sctp_chunk_fail
This patch is to force SCTP_ERROR_INV_STRM with right type to fit in sctp_chunk_fail to avoid the sparse error. Signed-off-by: Xin Long <[email protected]> Acked-by: Marcelo Ricardo Leitner <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f95d5bf commit 08f4607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/sctp/stream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static void sctp_stream_outq_migrate(struct sctp_stream *stream,
6464
*/
6565

6666
/* Mark as failed send. */
67-
sctp_chunk_fail(ch, SCTP_ERROR_INV_STRM);
67+
sctp_chunk_fail(ch, (__force __u32)SCTP_ERROR_INV_STRM);
6868
if (asoc->peer.prsctp_capable &&
6969
SCTP_PR_PRIO_ENABLED(ch->sinfo.sinfo_flags))
7070
asoc->sent_cnt_removable--;

0 commit comments

Comments
 (0)