Skip to content

Commit

Permalink
sctp: force SCTP_ERROR_INV_STRM with __u32 when calling sctp_chunk_fail
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
lxin authored and davem330 committed Nov 28, 2017
1 parent f95d5bf commit 08f4607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sctp/stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ static void sctp_stream_outq_migrate(struct sctp_stream *stream,
*/

/* Mark as failed send. */
sctp_chunk_fail(ch, SCTP_ERROR_INV_STRM);
sctp_chunk_fail(ch, (__force __u32)SCTP_ERROR_INV_STRM);
if (asoc->peer.prsctp_capable &&
SCTP_PR_PRIO_ENABLED(ch->sinfo.sinfo_flags))
asoc->sent_cnt_removable--;
Expand Down

0 comments on commit 08f4607

Please sign in to comment.