Files
linux/drivers/usb/gadget
Alan Stern 88721a2f24 USB: g_printer: fix bug in module parameter definitions
commit ad84e4a9ef upstream.

This patch (as1442) fixes a bug in g_printer: Module parameters should
not be marked "__initdata" if they are accessible in sysfs (i.e., if
the mode value in the module_param() macro is nonzero).  Otherwise
attempts to access the parameters will cause addressing violations.

Character-string module parameters must not be marked "__initdata"
if the module can be unloaded, because the kernel needs to access the
parameter variable at unload time in order to free the
dynamically-allocated string.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: Roland Kletzing <devzero@web.de>
CC: Craig W. Nadler <craig@nadler.us>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-02-17 15:36:47 -08:00
..
2009-01-07 09:59:58 -08:00
2009-09-23 06:46:32 -07:00
2008-10-22 10:05:28 -07:00
2009-09-23 06:46:35 -07:00
2009-09-23 18:13:10 -07:00
2009-09-23 18:13:10 -07:00
2009-09-23 06:46:35 -07:00
2009-09-23 18:13:10 -07:00
2009-10-04 15:05:10 -07:00
2009-10-21 13:20:32 +01:00
2009-07-12 12:22:34 -07:00
2008-07-21 15:16:10 -07:00
2009-09-23 06:46:35 -07:00
2009-09-23 18:13:10 -07:00
2009-09-23 18:13:10 -07:00
2009-09-23 06:46:35 -07:00
2008-10-17 14:40:53 -07:00