lkml.org 
[lkml]   [2003]   [Jun]   [12]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateThu, 12 Jun 2003 12:37:47 +0530
FromRavikiran G Thirumalai <>
SubjectRe: [patchset] Fix sign handling bugs in 2.5 -- 4/5; tun
--- linux-2.5.70/drivers/net/tun.c	Tue May 27 06:30:39 2003
+++ shb-tun-2.5.70/drivers/net/tun.c	Wed Jun 11 16:37:46 2003
@@ -185,7 +185,7 @@
 	size_t len = count;
 
 	if (!(tun->flags & TUN_NO_PI)) {
-		if ((len -= sizeof(pi)) < 0)
+		if ((len -= sizeof(pi)) > len)
 			return -EINVAL;
 
 		memcpy_fromiovec((void *)&pi, iv, sizeof(pi));
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 12:36    [from the cache]
©2003-2008