patch-2.4.19 linux-2.4.19/arch/arm/kernel/compat.c

Next file: linux-2.4.19/arch/arm/kernel/debug-armv.S
Previous file: linux-2.4.19/arch/arm/kernel/calls.S
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/arch/arm/kernel/compat.c linux-2.4.19/arch/arm/kernel/compat.c
@@ -89,10 +89,12 @@
 	}
 
 #ifdef CONFIG_FOOTBRIDGE
-	tag = tag_next(tag);
-	tag->hdr.tag = ATAG_MEMCLK;
-	tag->hdr.size = tag_size(tag_memclk);
-	tag->u.memclk.fmemclk = params->u1.s.mem_fclk_21285;
+	if (params->u1.s.mem_fclk_21285) {
+		tag = tag_next(tag);
+		tag->hdr.tag = ATAG_MEMCLK;
+		tag->hdr.size = tag_size(tag_memclk);
+		tag->u.memclk.fmemclk = params->u1.s.mem_fclk_21285;
+	}
 #endif
 
 #ifdef CONFIG_ARCH_ACORN

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