* [PATCH] can: wrong index used in inner loop @ 2011-03-08 19:52 roel [not found] ` <4D768917.9040605-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: roel @ 2011-03-08 19:52 UTC (permalink / raw) To: Wolfgang Grandegger, socketcan-core, netdev, Andrew Morton, LKML Index i was already used in the outer loop. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> --- 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 05a5275..dc53c83 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; } } } ^ permalink raw reply related [flat|nested] 3+ messages in thread
[parent not found: <4D768917.9040605-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH] can: wrong index used in inner loop [not found] ` <4D768917.9040605-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2011-03-14 21:47 ` David Miller [not found] ` <20110314.144743.232749141.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: David Miller @ 2011-03-14 21:47 UTC (permalink / raw) To: roel.kluin-Re5JQEeQqe8AvxtiuMwx3w Cc: socketcan-core-0fE9KPoRgkgATYTw5x5z8w, netdev-u79uwXL29TY76Z2rM5mHXA, akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b, linux-kernel-u79uwXL29TY76Z2rM5mHXA, wg-5Yr1BZd7O62+XT7JhA+gdA From: roel <roel.kluin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Date: Tue, 08 Mar 2011 20:52:55 +0100 > Index i was already used in the outer loop. > > Signed-off-by: Roel Kluin <roel.kluin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> CAN maintainers, could you please review and ACK patches in a timely manner, especially utterly trivial bug fixes like this one here? That's largely what I've been waiting for, a simple sign of life from the listed maintainers for these files. Anyways, no use waiting any longer, applied, thanks Roel. ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <20110314.144743.232749141.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>]
* Re: [PATCH] can: wrong index used in inner loop [not found] ` <20110314.144743.232749141.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org> @ 2011-03-15 9:02 ` wg 0 siblings, 0 replies; 3+ messages in thread From: wg @ 2011-03-15 9:02 UTC (permalink / raw) To: David Miller Cc: socketcan-core-0fE9KPoRgkgATYTw5x5z8w, netdev-u79uwXL29TY76Z2rM5mHXA, akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b, roel.kluin-Re5JQEeQqe8AvxtiuMwx3w, linux-kernel-u79uwXL29TY76Z2rM5mHXA On Mon, 14 Mar 2011 14:47:43 -0700 (PDT), David Miller <davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org> wrote: > From: roel <roel.kluin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > Date: Tue, 08 Mar 2011 20:52:55 +0100 > >> Index i was already used in the outer loop. >> >> Signed-off-by: Roel Kluin <roel.kluin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > CAN maintainers, could you please review and ACK patches in a timely > manner, > especially utterly trivial bug fixes like this one here? > > That's largely what I've been waiting for, a simple sign of life from the > listed maintainers for these files. OK, will try to react fast next time. > Anyways, no use waiting any longer, applied, thanks Roel. Thanks, Wolfgang. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-15 9:02 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-03-08 19:52 [PATCH] can: wrong index used in inner loop roel [not found] ` <4D768917.9040605-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2011-03-14 21:47 ` David Miller [not found] ` <20110314.144743.232749141.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org> 2011-03-15 9:02 ` wg
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).