diff -urNp linux-2.4.21/drivers/char/rtc.c linux-2.4.21.SUSE/drivers/char/rtc.c --- linux-2.4.21/drivers/char/rtc.c 2003-06-13 16:51:33.000000000 +0200 +++ linux-2.4.21.SUSE/drivers/char/rtc.c 2003-10-15 15:07:00.000000000 +0200 @@ -362,7 +362,7 @@ static int rtc_ioctl(struct inode *inode * means "don't care" or "match all". Only the tm_hour, * tm_min, and tm_sec values are filled in. */ - + memset(&wtime, 0, sizeof(struct rtc_time)); get_rtc_alm_time(&wtime); break; } @@ -406,6 +406,7 @@ static int rtc_ioctl(struct inode *inode } case RTC_RD_TIME: /* Read the time/date from RTC */ { + memset(&wtime, 0, sizeof(struct rtc_time)); get_rtc_time(&wtime); break; }