linux/drivers/net/ixgbevf
Kulikov Vasiliy 2540ddb512 drivers: ixgbevf: fix unsigned underflow
'count' is unsigned. It is initialized to zero, then it can be increased
multiple times, and finally it is used in such a way:

   >>>> count--;
   |
   |    /* clear timestamp and dma mappings for remaining portion of packet */
   |    while (count >= 0) {
   |            count--;
   |            ...
   ^
If count is zero here (so, it was never increased), we would have a very
long loop :)

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-07-15 20:27:58 -07:00
..
Makefile
defines.h ixgbevf: Fix link speed display 2010-04-27 14:35:55 -07:00
ethtool.c
ixgbevf.h
ixgbevf_main.c drivers: ixgbevf: fix unsigned underflow 2010-07-15 20:27:58 -07:00
mbx.c
mbx.h
regs.h
vf.c ixgbevf: Fix link speed display 2010-04-27 14:35:55 -07:00
vf.h