[linux-usb-devel] [patch] USB: kill bogus file in /sys/module/nousb/parameters

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Greg KH <greg@...>
Cc: USB development list <linux-usb-devel@...>, Pete Zaitcev <zaitcev@...>
Date: Friday, October 19, 2007 - 2:38 pm

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 <cebbert@redhat.com>

--- 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/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[linux-usb-devel] [patch] USB: kill bogus file in /sys/modul..., Chuck Ebbert, (Fri Oct 19, 2:38 pm)