[patch] USB: kill bogus file in /sys/module/nousb/parameters
Chuck Ebbert <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Organization | Red Hat |
| Message-ID | <[email protected]> |
When USB is builtin, a file with a zero-length name is getting created in /sys/module/nousb/parameters and it's causing problems for programs that scan the filesystem. Since the file can't be read, statted, or anything, don't create it at all. Signed-off-by: Chuck Ebbert <[email protected]> --- linux-2.6.23.x86_64.orig/drivers/usb/core/usb.c +++ linux-2.6.23.x86_64/drivers/usb/core/usb.c @@ -849,7 +849,7 @@ void usb_buffer_unmap_sg(const struct us } /* format to disable USB on kernel command line is: nousb */ -__module_param_call("", nousb, param_set_bool, param_get_bool, &nousb, 0444); +__module_param_call("", nousb, param_set_bool, param_get_bool, &nousb, 0); /* * for external read access to <nousb> ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel