kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Kernel-janitors] [patch 2.6.1] remove verify_area from
@ 2004-01-17 14:11 Domen Puncer
  0 siblings, 0 replies; only message in thread
From: Domen Puncer @ 2004-01-17 14:11 UTC (permalink / raw)
  To: kernel-janitors

Hi.

Pretty trivial.


--- c/drivers/char/dz.c	2003-12-18 03:58:08.000000000 +0100
+++ a/drivers/char/dz.c	2004-01-17 15:08:53.000000000 +0100
@@ -986,11 +986,7 @@ static int dz_ioctl(struct tty_struct *t
 		return 0;
 
 	case TIOCGSOFTCAR:
-		error = verify_area (VERIFY_WRITE, (void *)arg, sizeof(long));
-		if (error)
-			return error;
-		put_user(C_CLOCAL(tty) ? 1 : 0, (unsigned long *)arg);
-		return 0;
+		return put_user(C_CLOCAL(tty) ? 1 : 0, (unsigned long *)arg);
 
 	case TIOCSSOFTCAR:
 		if (get_user (arg, (unsigned long *)arg))
@@ -1001,10 +997,6 @@ static int dz_ioctl(struct tty_struct *t
 		return 0;
 
 	case TIOCGSERIAL:
-		error = verify_area(VERIFY_WRITE, (void *)arg,
-		                    sizeof(struct serial_struct));
-		if (error)
-			return error;
 		return get_serial_info(info, (struct serial_struct *)arg);
 
 	case TIOCSSERIAL:

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-01-17 14:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-17 14:11 [Kernel-janitors] [patch 2.6.1] remove verify_area from Domen Puncer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).