Bug 8212
Summary: | Race: a lock is expected before calling gs_free_ports, but it is not held in some case and it is held in other cases | ||
---|---|---|---|
Product: | Drivers | Reporter: | Lin Tan (tammy000) |
Component: | USB | Assignee: | Greg Kroah-Hartman (greg) |
Status: | REJECTED INVALID | ||
Severity: | high | ||
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.20.1 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Bug Depends on: | |||
Bug Blocks: | 5089 |
Description
Lin Tan
2007-03-15 19:32:34 UTC
I found this bug using a static checking tool. gs_bind() and gs_unbind() are called on module load/unload respectivly. i think the code assumes that the module won't be loaded/unloaded/used simultaneously. i'm a newbie but i suppose the kernel assures that the module can't be used or unloaded until it is completely loaded, and the same way that it can't be unloaded (or reloaded) while it used by a device. Yes, a module can not be unloaded at the same time, so this all should just be fine. |