lkml.org 
[lkml]   [2001]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH] fix drivers/usb/scanner.c ioctl return
The following patch corrects the return value from the ioctl function
in the USB scanner code, in the case where the ioctl is unrecognized.

Linus, please apply.

Paul.

diff -urN linux/drivers/usb/scanner.c pmac/drivers/usb/scanner.c
--- linux/drivers/usb/scanner.c Sat Apr 28 23:02:49 2001
+++ pmac/drivers/usb/scanner.c Thu Jun 28 17:28:25 2001
@@ -909,7 +909,7 @@
return result;
}
default:
- return -ENOIOCTLCMD;
+ return -ENOTTY;
}
return 0;
}
-
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:56    [W:0.022 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site