lkml.org 
[lkml]   [2000]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] efirtc.c: small fix
Hi,

Please consider applying.

- Arnaldo

--- linux-2.4.0-test7/drivers/char/efirtc.c Thu Aug 24 07:39:55 2000
+++ linux-2.4.0-test7.acme/drivers/char/efirtc.c Fri Aug 25 17:12:37 2000
@@ -249,7 +249,7 @@

convert_from_efi_time(&eft, &wtime);

- return copy_to_user((void *)&ewp->time, &wtime, sizeof(struct rtc_time));
+ return copy_to_user((void *)&ewp->time, &wtime, sizeof(struct rtc_time)) ? -EFAULT : 0;
}
return -EINVAL;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.027 / U:1.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site