patch-2.4.24 linux-2.4.24/arch/ppc64/kernel/rtc.c

Next file: linux-2.4.24/drivers/acorn/char/i2c.c
Previous file: linux-2.4.24/arch/m68k/mvme16x/rtc.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.23/arch/ppc64/kernel/rtc.c linux-2.4.24/arch/ppc64/kernel/rtc.c
@@ -96,6 +96,7 @@
 	switch (cmd) {
 	case RTC_RD_TIME:	/* Read the time/date from RTC	*/
 	{
+		memset(&wtime, 0, sizeof(struct rtc_time));
 		ppc_md.get_rtc_time(&wtime);
 		break;
 	}

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