Bug 25882
Summary: | g_printer oops on module unload | ||
---|---|---|---|
Product: | Drivers | Reporter: | Roland Kletzing (devzero) |
Component: | USB | Assignee: | Greg Kroah-Hartman (greg) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | florian |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.37-rc7 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
Fix unregistration bug in g_printer
Remove __initdata from char * parameters |
Description
Roland Kletzing
2010-12-29 23:47:03 UTC
the oops also happens with standard 2.6.35-24-generic kernel from ubuntu 10.10 Created attachment 42552 [details]
Fix unregistration bug in g_printer
This patch fixes the bug you found, by unregistering the gadget driver before destroying the class instead of after.
However the fix only exposes another bug, related to incorrect use of __initdata with module parameters. I'm still pursuing the correct solution to this second bug.
Created attachment 42722 [details]
Remove __initdata from char * parameters
Here's a patch to fix the other bug in g_printer. If you test the two patches together, everything should work okay.
merged for v2.6.38-rc3: commit d5aa475180d03d45c5dc6134aa833f1b3e89c45e Author: Alan Stern <stern@rowland.harvard.edu> Date: Mon Jan 10 11:23:05 2011 -0500 USB: g_printer: fix bug in unregistration All USB bugs should be sent to the linux-usb@vger.kernel.org mailing list, and not entered into bugzilla. Please bring this issue up there, if it is still a problem in the latest kernel release. |