<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"># This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.690   -&gt; 1.691  
#	drivers/usb/misc/rio500.c	1.13    -&gt; 1.14   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/07/22	greg@kroah.com	1.691
# [PATCH] USB: rio500.c bugfix
# 
# patch from Silvio Cesare to fix signed problem.
# --------------------------------------------
#
diff -Nru a/drivers/usb/misc/rio500.c b/drivers/usb/misc/rio500.c
--- a/drivers/usb/misc/rio500.c	Mon Jul 22 17:11:04 2002
+++ b/drivers/usb/misc/rio500.c	Mon Jul 22 17:11:04 2002
@@ -146,7 +146,7 @@
 			retval = -EFAULT;
 			goto err_out;
 		}
-		if (rio_cmd.length &gt; PAGE_SIZE) {
+		if (rio_cmd.length &lt; 0 || rio_cmd.length &gt; PAGE_SIZE) {
 			retval = -EINVAL;
 			goto err_out;
 		}
@@ -216,7 +216,7 @@
 			retval = -EFAULT;
 			goto err_out;
 		}
-		if (rio_cmd.length &gt; PAGE_SIZE) {
+		if (rio_cmd.length &lt; 0 || rio_cmd.length &gt; PAGE_SIZE) {
 			retval = -EINVAL;
 			goto err_out;
 		}
</pre></body></html>