patch-2.4.24 linux-2.4.24/arch/cris/drivers/pcf8563.c

Next file: linux-2.4.24/arch/m68k/bvme6000/rtc.c
Previous file: linux-2.4.24/arch/cris/drivers/ds1302.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.23/arch/cris/drivers/pcf8563.c linux-2.4.24/arch/cris/drivers/pcf8563.c
@@ -220,6 +220,7 @@
 		{
 			struct rtc_time tm;
 
+			memset(&tm, 0, sizeof (struct rtc_time));
 			get_rtc_time(&tm);
 
 			if (copy_to_user((struct rtc_time *) arg, &tm, sizeof tm)) {

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