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
..
defines.h ixgbevf: Fix link speed display 2010-04-27 14:35:55 -07:00
ethtool.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ixgbevf_main.c drivers: ixgbevf: fix unsigned underflow 2010-07-15 20:27:58 -07:00
ixgbevf.h ixgbevf: Driver main and ethool interface module and main header 2010-01-10 13:34:22 -08:00
Makefile ixgbevf: Driver Makefile 2010-01-10 13:34:23 -08:00
mbx.c ixgbevf: Mailbox communication 2010-01-10 13:34:21 -08:00
mbx.h ixgbevf: Mailbox communication 2010-01-10 13:34:21 -08:00
regs.h ixgbevf: Macros, data structures, useful defines and registers 2010-01-10 13:34:20 -08:00
vf.c ixgbevf: Fix link speed display 2010-04-27 14:35:55 -07:00
vf.h ixgbevf: convert to use netdev_for_each_mc_addr 2010-03-26 20:10:03 -07:00