patch-2.4.21 linux-2.4.21/arch/ppc64/boot/addRamDisk.c
Next file: linux-2.4.21/arch/ppc64/boot/addSystemMap.c
Previous file: linux-2.4.21/arch/ppc64/boot/README
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
2003-06-13 07:51:31.000000000 -0700
- Orig file:
linux-2.4.20/arch/ppc64/boot/addRamDisk.c
- Orig date:
2002-11-28 15:53:11.000000000 -0800
diff -urN linux-2.4.20/arch/ppc64/boot/addRamDisk.c linux-2.4.21/arch/ppc64/boot/addRamDisk.c
@@ -154,9 +154,8 @@
/* Process the Sysmap file to determine where _end is */
sysmapPages = sysmapLen / 4096;
- for (i=0; i<sysmapPages; ++i) {
- get4k(sysmap, inbuf);
- }
+ /* read the whole file line by line, expect that it doesnt fail */
+ while ( fgets(inbuf, 4096, sysmap) ) ;
/* search for _end in the last page of the system map */
ptr_end = strstr(inbuf, " _end");
if (!ptr_end) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)