patch-2.2.16 linux/arch/s390/mm/init.c

Next file: linux/arch/s390/tools/dasdfmt/Makefile
Previous file: linux/arch/s390/mm/fault.c
Back to the patch index
Back to the overall index

diff -urN v2.2.15/linux/arch/s390/mm/init.c linux/arch/s390/mm/init.c
@@ -337,7 +337,8 @@
 
         tmp = start_mem;
         while (tmp < end_mem) {
-                if ((tmp & 0x3ff000) == 0 && test_access(tmp) == 0) {
+                if (tmp && (tmp & 0x3ff000) == 0 &&
+                    test_access(tmp) == 0) {
                         int i;
                         printk("4M Segment %lX not available\n",tmp);
                         for (i = 0;i<0x400;i++) {
@@ -404,7 +405,7 @@
                 atomic_set(&mem_map[MAP_NR(addr)].count, 1);
                 free_page(addr);
         }
-        printk ("Freeing unused kernel memory: %ldk freed\n", (&__init_end - &__init_begin) >> 10);
+        printk ("Freeing unused kernel memory: %dk freed\n", (&__init_end - &__init_begin) >> 10);
 }
 
 void si_meminfo(struct sysinfo *val)

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