# 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   -> 1.691  
#       drivers/usb/misc/rio500.c       1.13    -> 1.14   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/07/22      [EMAIL PROTECTED]  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 > PAGE_SIZE) {
+               if (rio_cmd.length < 0 || rio_cmd.length > PAGE_SIZE) {
                        retval = -EINVAL;
                        goto err_out;
                }
@@ -216,7 +216,7 @@
                        retval = -EFAULT;
                        goto err_out;
                }
-               if (rio_cmd.length > PAGE_SIZE) {
+               if (rio_cmd.length < 0 || rio_cmd.length > PAGE_SIZE) {
                        retval = -EINVAL;
                        goto err_out;
                }


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to