netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-2.6 PATCH 1/3] ixgbevf: Fix signed/unsigned int error
@ 2010-03-24 19:35 Jeff Kirsher
  2010-03-24 19:36 ` [net-2.6 PATCH 2/3] ixgbe: In SR-IOV mode insert delay before bring the adapter up Jeff Kirsher
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jeff Kirsher @ 2010-03-24 19:35 UTC (permalink / raw)
  To: davem; +Cc: netdev, gospo, Greg Rose, Jeff Kirsher

From: Greg Rose <gregory.v.rose@intel.com>

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>
---

 drivers/net/ixgbevf/ixgbevf_main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/net/ixgbevf/ixgbevf_main.c b/drivers/net/ixgbevf/ixgbevf_main.c
index 9aaebd3..55f74b3 100644
--- a/drivers/net/ixgbevf/ixgbevf_main.c
+++ b/drivers/net/ixgbevf/ixgbevf_main.c
@@ -2921,9 +2921,10 @@ static int ixgbevf_tx_map(struct ixgbevf_adapter *adapter,
 	struct ixgbevf_tx_buffer *tx_buffer_info;
 	unsigned int len;
 	unsigned int total = skb->len;
-	unsigned int offset = 0, size, count = 0, i;
+	unsigned int offset = 0, size, count = 0;
 	unsigned int nr_frags = skb_shinfo(skb)->nr_frags;
 	unsigned int f;
+	int i;
 
 	i = tx_ring->next_to_use;
 


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-03-26 19:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-24 19:35 [net-2.6 PATCH 1/3] ixgbevf: Fix signed/unsigned int error Jeff Kirsher
2010-03-24 19:36 ` [net-2.6 PATCH 2/3] ixgbe: In SR-IOV mode insert delay before bring the adapter up Jeff Kirsher
2010-03-26 18:57   ` David Miller
2010-03-26 19:45     ` Rose, Gregory V
2010-03-24 19:36 ` [net-2.6 PATCH 3/3] ixgbe: Change where clear_to_send_flag is reset to zero Jeff Kirsher
2010-03-26 18:58   ` David Miller
2010-03-26 18:56 ` [net-2.6 PATCH 1/3] ixgbevf: Fix signed/unsigned int error David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).