patch-2.4.24 linux-2.4.24/drivers/acorn/char/i2c.c

Next file: linux-2.4.24/drivers/char/ds1286.c
Previous file: linux-2.4.24/arch/ppc64/kernel/rtc.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.23/drivers/acorn/char/i2c.c linux-2.4.24/drivers/acorn/char/i2c.c
@@ -166,6 +166,7 @@
 		break;
 
 	case RTC_RD_TIME:
+		memset(&rtctm, 0, sizeof(struct rtc_time));
 		get_rtc_time(&rtc_raw, &year);
 		rtctm.tm_sec  = rtc_raw.secs;
 		rtctm.tm_min  = rtc_raw.mins;

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