Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 37317 | Differences between
and this patch

Collapse All | Expand All

(-)linux-2.4.20-wolk4.9s/arch/cris/drivers/ds1302.c (+1 lines)
Lines 315-320 Link Here
315
		{
315
		{
316
			struct rtc_time rtc_tm;
316
			struct rtc_time rtc_tm;
317
						
317
						
318
			memset(&rtc_tm, 0, sizeof (struct rtc_time));
318
			get_rtc_time(&rtc_tm);						
319
			get_rtc_time(&rtc_tm);						
319
			if (copy_to_user((struct rtc_time*)arg, &rtc_tm, sizeof(struct rtc_time)))
320
			if (copy_to_user((struct rtc_time*)arg, &rtc_tm, sizeof(struct rtc_time)))
320
				return -EFAULT;	
321
				return -EFAULT;	
(-)linux-2.4.20-wolk4.9s/arch/cris/drivers/pcf8563.c (+1 lines)
Lines 174-179 Link Here
174
			{
174
			{
175
				struct rtc_time tm;
175
				struct rtc_time tm;
176
176
177
				memset(&tm, 0, sizeof (struct rtc_time));
177
				get_rtc_time(&tm);
178
				get_rtc_time(&tm);
178
179
179
				if (copy_to_user((struct rtc_time *) arg, &tm, sizeof(struct rtc_time))) {
180
				if (copy_to_user((struct rtc_time *) arg, &tm, sizeof(struct rtc_time))) {
(-)linux-2.4.20-wolk4.9s/arch/m68k/bvme6000/rtc.c (+1 lines)
Lines 54-59 Link Here
54
		/* Ensure clock and real-time-mode-register are accessible */
54
		/* Ensure clock and real-time-mode-register are accessible */
55
		msr = rtc->msr & 0xc0;
55
		msr = rtc->msr & 0xc0;
56
		rtc->msr = 0x40;
56
		rtc->msr = 0x40;
57
		memset(&wtime, 0, sizeof (struct rtc_time));
57
		do {
58
		do {
58
			wtime.tm_sec =  BCD2BIN(rtc->bcd_sec);
59
			wtime.tm_sec =  BCD2BIN(rtc->bcd_sec);
59
			wtime.tm_min =  BCD2BIN(rtc->bcd_min);
60
			wtime.tm_min =  BCD2BIN(rtc->bcd_min);
(-)linux-2.4.20-wolk4.9s/arch/m68k/mvme16x/rtc.c (+1 lines)
Lines 52-57 Link Here
52
		cli();
52
		cli();
53
		/* Ensure clock and real-time-mode-register are accessible */
53
		/* Ensure clock and real-time-mode-register are accessible */
54
		rtc->ctrl = RTC_READ;
54
		rtc->ctrl = RTC_READ;
55
		memset(&wtime, 0, sizeof (struct rtc_time));
55
		wtime.tm_sec =  BCD2BIN(rtc->bcd_sec);
56
		wtime.tm_sec =  BCD2BIN(rtc->bcd_sec);
56
		wtime.tm_min =  BCD2BIN(rtc->bcd_min);
57
		wtime.tm_min =  BCD2BIN(rtc->bcd_min);
57
		wtime.tm_hour = BCD2BIN(rtc->bcd_hr);
58
		wtime.tm_hour = BCD2BIN(rtc->bcd_hr);
(-)linux-2.4.20-wolk4.9s/arch/mips/sgi-ip27/ip27-rtc.c (+1 lines)
Lines 84-89 Link Here
84
	switch (cmd) {
84
	switch (cmd) {
85
	case RTC_RD_TIME:	/* Read the time/date from RTC	*/
85
	case RTC_RD_TIME:	/* Read the time/date from RTC	*/
86
	{
86
	{
87
		memset(&wtime, 0, sizeof(struct rtc_time));
87
		get_rtc_time(&wtime);
88
		get_rtc_time(&wtime);
88
		break;
89
		break;
89
	}
90
	}
(-)linux-2.4.20-wolk4.9s/arch/ppc64/kernel/rtc.c (+1 lines)
Lines 96-101 Link Here
96
	switch (cmd) {
96
	switch (cmd) {
97
	case RTC_RD_TIME:	/* Read the time/date from RTC	*/
97
	case RTC_RD_TIME:	/* Read the time/date from RTC	*/
98
	{
98
	{
99
		memset(&wtime, 0, sizeof(struct rtc_time));
99
		ppc_md.get_rtc_time(&wtime);
100
		ppc_md.get_rtc_time(&wtime);
100
		break;
101
		break;
101
	}
102
	}
(-)linux-2.4.20-wolk4.9s/drivers/char/efirtc.c (+1 lines)
Lines 118-123 Link Here
118
static void
118
static void
119
convert_from_efi_time(efi_time_t *eft, struct rtc_time *wtime)
119
convert_from_efi_time(efi_time_t *eft, struct rtc_time *wtime)
120
{
120
{
121
	memset(wtime, 0, sizeof(struct rtc_time));
121
	wtime->tm_sec  = eft->second;
122
	wtime->tm_sec  = eft->second;
122
	wtime->tm_min  = eft->minute;
123
	wtime->tm_min  = eft->minute;
123
	wtime->tm_hour = eft->hour;
124
	wtime->tm_hour = eft->hour;
(-)linux-2.4.20-wolk4.9s/drivers/char/rtc.c (+2 lines)
Lines 370-375 Link Here
370
		 * tm_min, and tm_sec values are filled in.
370
		 * tm_min, and tm_sec values are filled in.
371
		 */
371
		 */
372
372
373
		memset(&wtime, 0, sizeof(struct rtc_time));
373
		get_rtc_alm_time(&wtime);
374
		get_rtc_alm_time(&wtime);
374
		break; 
375
		break; 
375
	}
376
	}
Lines 417-422 Link Here
417
	}
418
	}
418
	case RTC_RD_TIME:	/* Read the time/date from RTC	*/
419
	case RTC_RD_TIME:	/* Read the time/date from RTC	*/
419
	{
420
	{
421
		memset(&wtime, 0, sizeof(struct rtc_time));
420
		get_rtc_time(&wtime);
422
		get_rtc_time(&wtime);
421
		break;
423
		break;
422
	}
424
	}
(-)linux-2.4.20-wolk4.9s/drivers/hil/hp_sdc_rtc.c (+2 lines)
Lines 561-566 Link Here
561
        }
561
        }
562
        case RTC_ALM_READ:      /* Read the present alarm time */
562
        case RTC_ALM_READ:      /* Read the present alarm time */
563
        {
563
        {
564
		memset(&ttime, 0, sizeof(struct timeval));
564
		if (hp_sdc_rtc_read_mt(&ttime)) return -EFAULT;
565
		if (hp_sdc_rtc_read_mt(&ttime)) return -EFAULT;
565
                break;
566
                break;
566
        }
567
        }
Lines 609-614 Link Here
609
        }
610
        }
610
        case RTC_RD_TIME:       /* Read the time/date from RTC  */
611
        case RTC_RD_TIME:       /* Read the time/date from RTC  */
611
        {
612
        {
613
		memset(&wtime, 0, sizeof(struct rtc_time));
612
		if (hp_sdc_rtc_read_bbrtc(&wtime)) return -EFAULT;
614
		if (hp_sdc_rtc_read_bbrtc(&wtime)) return -EFAULT;
613
                break;
615
                break;
614
        }
616
        }
(-)linux-2.4.20-wolk4.9s/drivers/macintosh/rtc.c (+1 lines)
Lines 64-69 Link Here
64
	case RTC_RD_TIME:
64
	case RTC_RD_TIME:
65
		if (ppc_md.get_rtc_time)
65
		if (ppc_md.get_rtc_time)
66
		{
66
		{
67
			memset(&rtc_tm, 0, sizeof(struct rtc_time));
67
			get_rtc_time(&rtc_tm);
68
			get_rtc_time(&rtc_tm);
68
69
69
			if (copy_to_user((struct rtc_time*)arg, &rtc_tm, sizeof(struct rtc_time)))
70
			if (copy_to_user((struct rtc_time*)arg, &rtc_tm, sizeof(struct rtc_time)))
(-)linux-2.4.20-wolk4.9s/drivers/sbus/char/rtc.c (+1 lines)
Lines 89-94 Link Here
89
	switch (cmd)
89
	switch (cmd)
90
	{
90
	{
91
	case RTCGET:
91
	case RTCGET:
92
		memset(&rtc_tm, 0, sizeof(struct rtc_time));
92
		get_rtc_time(&rtc_tm);
93
		get_rtc_time(&rtc_tm);
93
94
94
		if (copy_to_user((struct rtc_time*)arg, &rtc_tm, sizeof(struct rtc_time)))
95
		if (copy_to_user((struct rtc_time*)arg, &rtc_tm, sizeof(struct rtc_time)))
(-)linux-2.4.20-wolk4.9s/drivers/sgi/char/ds1286.c (+2 lines)
Lines 174-179 Link Here
174
		 * tm_min, and tm_sec values are filled in.
174
		 * tm_min, and tm_sec values are filled in.
175
		 */
175
		 */
176
176
177
		memset(&wtime, 0, sizeof(struct rtc_time));
177
		ds1286_get_alm_time(&wtime);
178
		ds1286_get_alm_time(&wtime);
178
		break;
179
		break;
179
	}
180
	}
Lines 216-221 Link Here
216
	}
217
	}
217
	case RTC_RD_TIME:	/* Read the time/date from RTC	*/
218
	case RTC_RD_TIME:	/* Read the time/date from RTC	*/
218
	{
219
	{
220
		memset(&wtime, 0, sizeof(struct rtc_time));
219
		ds1286_get_time(&wtime);
221
		ds1286_get_time(&wtime);
220
		break;
222
		break;
221
	}
223
	}

Return to bug 37317