diff options
author | Alan Stern <[email protected]> | 2011-01-10 11:24:14 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2011-01-22 18:38:58 -0800 |
commit | ad84e4a9efb7c8ed322bafb6ebdb9c3a49a3d3a8 (patch) | |
tree | 349322cc16dc14d29154567011163cf9c35a0ce4 /tools/perf/util/trace-event-scripting.c | |
parent | d5aa475180d03d45c5dc6134aa833f1b3e89c45e (diff) |
USB: g_printer: fix bug in module parameter definitions
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 <[email protected]>
CC: Roland Kletzing <[email protected]>
CC: Craig W. Nadler <[email protected]>
CC: <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions