commit | e8054854221d9d51e381c64d365404f4c1c30f50 | [log] [tgz] |
---|---|---|
author | Alan Stern <stern@rowland.harvard.edu> | Fri May 04 11:55:11 2007 -0400 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Thu Jul 12 16:29:46 2007 -0700 |
tree | f7efd45bce5842dde7986aa700dab09548e8c7d4 | |
parent | 06b84e8adcad8280d76a7c71e772c5cddba96d85 [diff] |
USB: make hub driver's release more robust This revised patch (as893c) improves the method used by the hub driver to release its private data structure. The current code is non-robust, relying on a memory region not getting reused by another driver after it has been freed. The patch adds a reference count to the structure, resolving the question of when to release it. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>