* copy_to_user check for sgiserial
@ 2003-05-15 3:31 davej
0 siblings, 0 replies; only message in thread
From: davej @ 2003-05-15 3:31 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel
diff -urpN --exclude-from=/home/davej/.exclude bk-linus/drivers/sgi/char/sgiserial.c linux-2.5/drivers/sgi/char/sgiserial.c
--- bk-linus/drivers/sgi/char/sgiserial.c 2003-05-08 13:46:22.000000000 +0100
+++ linux-2.5/drivers/sgi/char/sgiserial.c 2003-05-08 14:26:46.000000000 +0100
@@ -1232,7 +1233,7 @@ static int get_serial_info(struct sgi_se
tmp.close_delay = info->close_delay;
tmp.closing_wait = info->closing_wait;
tmp.custom_divisor = info->custom_divisor;
- return copy_to_user(retinfo,&tmp,sizeof(*retinfo));
+ return copy_to_user(retinfo,&tmp,sizeof(*retinfo)) ? -EFAULT : 0;
}
static int set_serial_info(struct sgi_serial * info,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-05-15 3:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-15 3:31 copy_to_user check for sgiserial davej
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome