public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] PPC: trivial fix of missed increment on counter
@ 2007-11-21  8:56 Cyrill Gorcunov
  2007-11-21 10:58 ` Cyrill Gorcunov
  0 siblings, 1 reply; 4+ messages in thread
From: Cyrill Gorcunov @ 2007-11-21  8:56 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: LKML

[-- Attachment #1: Type: text/plain, Size: 279 bytes --]

This patch does fix missed increment on counter

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
Sorry for that nonstandart patch submission - I've only access
to gmail with Internet Explorer on my work. If that is not OK - will resend
the patch today evening with mutt.

[-- Attachment #2: electra_ide.c-missed-inc.diff --]
[-- Type: text/plain, Size: 403 bytes --]

--- a/arc/powerpc/platforms/pasemi/electra_ide.c	Tue Nov 13 03:05:24 2007
+++ b/arc/powerpc/platforms/pasemi/electra_ide.c	Fri Nov 16 10:32:12 2007
@@ -42,7 +42,7 @@
 	np = of_find_compatible_node(NULL, "ide", "electra-ide");
 	i = 0;
 
-	while (np && i < MAX_IFS) {
+	while (np && i++ < MAX_IFS) {
 		memset(r, 0, sizeof(r));
 
 		/* pata_platform wants two address ranges: one for the base registers,

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

end of thread, other threads:[~2007-11-22 15:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-21  8:56 [PATCH] PPC: trivial fix of missed increment on counter Cyrill Gorcunov
2007-11-21 10:58 ` Cyrill Gorcunov
2007-11-22 15:20   ` Olof Johansson
2007-11-22 15:38     ` Cyrill Gorcunov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox