git: 948608b01308 - stable/13 - sctp: fix a signed/unsigned mismatch.

From: Michael Tuexen <tuexen_at_FreeBSD.org>
Date: Wed, 23 Feb 2022 00:15:36 UTC
The branch stable/13 has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=948608b01308c9baec34398d5452cc1c9a1e2a86

commit 948608b01308c9baec34398d5452cc1c9a1e2a86
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2022-02-17 21:44:41 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2022-02-23 00:14:07 +0000

    sctp: fix a signed/unsigned mismatch.
    
    (cherry picked from commit 11c4d4b9668c3092838beb168e0bbb3187433748)
---
 sys/netinet/sctp_crc32.c | 2 +-
 sys/netinet/sctp_crc32.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/netinet/sctp_crc32.c b/sys/netinet/sctp_crc32.c
index 9e17637d74d6..816a72bbea7b 100644
--- a/sys/netinet/sctp_crc32.c
+++ b/sys/netinet/sctp_crc32.c
@@ -90,7 +90,7 @@ sctp_calculate_cksum_cb(void *arg, void *data, u_int len)
  * it is compiled on a kernel with SCTP support.
  */
 uint32_t
-sctp_calculate_cksum(struct mbuf *m, uint32_t offset)
+sctp_calculate_cksum(struct mbuf *m, int32_t offset)
 {
 	uint32_t base;
 	int len;
diff --git a/sys/netinet/sctp_crc32.h b/sys/netinet/sctp_crc32.h
index 6b86074b696f..96ab7b96b6e4 100644
--- a/sys/netinet/sctp_crc32.h
+++ b/sys/netinet/sctp_crc32.h
@@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$");
 #define _NETINET_SCTP_CRC32_H_
 
 #if defined(_KERNEL)
-uint32_t sctp_calculate_cksum(struct mbuf *, uint32_t);
+uint32_t sctp_calculate_cksum(struct mbuf *, int32_t);
 #if defined(SCTP) || defined(SCTP_SUPPORT)
 void sctp_delayed_cksum(struct mbuf *, uint32_t offset);
 #endif