diff options
author | roel kluin <roel.kluin@gmail.com> | 2011-03-08 09:52:55 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-14 14:44:42 -0700 |
commit | 0b32211164da2b100553cb45e4e862f09c5cab11 (patch) | |
tree | 5128d4e8864d8d0f327c50ebe674fec6dbddeb86 /drivers/net/can | |
parent | 423cfa7e1fe68974b3b25fe8233ea57a5c2e5f02 (diff) | |
download | blackbird-op-linux-0b32211164da2b100553cb45e4e862f09c5cab11.tar.gz blackbird-op-linux-0b32211164da2b100553cb45e4e862f09c5cab11.zip |
can: wrong index used in inner loop
Index i was already used in the outer loop.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/can')
-rw-r--r-- | drivers/net/can/usb/esd_usb2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/can/usb/esd_usb2.c b/drivers/net/can/usb/esd_usb2.c index 05a52754f486..dc53c831ea95 100644 --- a/drivers/net/can/usb/esd_usb2.c +++ b/drivers/net/can/usb/esd_usb2.c @@ -659,7 +659,7 @@ failed: static void unlink_all_urbs(struct esd_usb2 *dev) { struct esd_usb2_net_priv *priv; - int i; + int i, j; usb_kill_anchored_urbs(&dev->rx_submitted); for (i = 0; i < dev->net_count; i++) { @@ -668,8 +668,8 @@ static void unlink_all_urbs(struct esd_usb2 *dev) usb_kill_anchored_urbs(&priv->tx_submitted); atomic_set(&priv->active_tx_jobs, 0); - for (i = 0; i < MAX_TX_URBS; i++) - priv->tx_contexts[i].echo_index = MAX_TX_URBS; + for (j = 0; j < MAX_TX_URBS; j++) + priv->tx_contexts[j].echo_index = MAX_TX_URBS; } } } |