]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbevf: Fix signed/unsigned int error
authorGreg Rose <gregory.v.rose@intel.com>
Wed, 24 Mar 2010 09:35:42 +0000 (09:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Mar 2010 18:56:00 +0000 (11:56 -0700)
commitcc6b7bcd767c57c5bf89944e11194c70db27e16b
treedececb1885019a371596895665765f2a7b15facd
parent2c331613f58b9084ca73b97635abf266a64cd659
ixgbevf: Fix signed/unsigned int error

In the Tx mapping function if a DMA error occurred then the unwind of
previously mapped sections would improperly check an unsigned int if
it was less than zero.  Changed the index variable to signed to avoid
the error.

Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbevf/ixgbevf_main.c