[PATCH] PPC: trivial fix of missed increment on counter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch does fix missed increment on counter

Signed-off-by: Cyrill Gorcunov <[email protected]>
---
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.
--- 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,

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux