From 1336993ca480cf647dc0f87c06ac51ec4175a361 Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Wed, 14 Jul 2010 19:46:23 -0700 Subject: [PATCH] datapath: Make checksum offsets unsigned. The offsets for checksum offsets should always be positive so make that explicit by using unsigned ints. This helps bug checks that test if the offsets are greater than their upper limits. --- datapath/datapath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datapath/datapath.c b/datapath/datapath.c index 8833bc149..2681fed72 100644 --- a/datapath/datapath.c +++ b/datapath/datapath.c @@ -2193,7 +2193,7 @@ success: if (skb->ip_summed == CHECKSUM_PARTIAL) { if (copy_bytes == skb->len) { __wsum csum = 0; - int csum_start, csum_offset; + unsigned int csum_start, csum_offset; #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22) csum_start = skb->csum_start - skb_headroom(skb); -- 2.43.0