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.
if (skb->ip_summed == CHECKSUM_PARTIAL) {
if (copy_bytes == skb->len) {
__wsum csum = 0;
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);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
csum_start = skb->csum_start - skb_headroom(skb);