patch-2.4.27 linux-2.4.27/arch/ppc64/kernel/lparcfg.c

Next file: linux-2.4.27/arch/ppc64/kernel/nvram.c
Previous file: linux-2.4.27/arch/ppc/platforms/proc_rtas.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.26/arch/ppc64/kernel/lparcfg.c linux-2.4.27/arch/ppc64/kernel/lparcfg.c
@@ -415,7 +415,7 @@
 	pnt = (char *)(data) + p;
 	copy_to_user(buf, (void *)pnt, count);
 	read += count;
-	*ppos += read;
+	*ppos = p + read;
 	return read;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)