patch-2.4.24 linux-2.4.24/arch/cris/drivers/ds1302.c
Next file: linux-2.4.24/arch/cris/drivers/pcf8563.c
Previous file: linux-2.4.24/Makefile
Back to the patch index
Back to the overall index
- Lines: 8
- Date:
2004-01-05 05:53:56.000000000 -0800
- Orig file:
linux-2.4.23/arch/cris/drivers/ds1302.c
- Orig date:
2003-08-25 04:44:39.000000000 -0700
diff -urN linux-2.4.23/arch/cris/drivers/ds1302.c linux-2.4.24/arch/cris/drivers/ds1302.c
@@ -346,6 +346,7 @@
{
struct rtc_time rtc_tm;
+ 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)))
return -EFAULT;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)