[PATCH] efirtc.c: small fix

From: Arnaldo Carvalho de Melo (acme@conectiva.com.br)
Date: Fri Aug 25 2000 - 15:15:13 EST


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/



This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:18 EST