Commit ac51c401 authored by David S. Miller's avatar David S. Miller

Tigon3: On 32-bit just wrap low 32bits of stats if we overflow.

parent 1d0c1d0b
......@@ -4240,10 +4240,7 @@ static inline unsigned long get_stat64(tg3_stat64_t *val)
unsigned long ret;
#if (BITS_PER_LONG == 32)
if (val->high != 0)
ret = ~0UL;
else
ret = val->low;
ret = val->low;
#else
ret = ((u64)val->high << 32) | ((u64)val->low);
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment