patch-2.4.24 linux-2.4.24/drivers/macintosh/rtc.c

Next file: linux-2.4.24/drivers/sbus/char/rtc.c
Previous file: linux-2.4.24/drivers/hil/hp_sdc_rtc.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.23/drivers/macintosh/rtc.c linux-2.4.24/drivers/macintosh/rtc.c
@@ -64,6 +64,7 @@
 	case RTC_RD_TIME:
 		if (ppc_md.get_rtc_time)
 		{
+			memset(&rtc_tm, 0, sizeof(struct rtc_time));
 			get_rtc_time(&rtc_tm);
 
 			if (copy_to_user((struct rtc_time*)arg, &rtc_tm, sizeof(struct rtc_time)))

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