]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: make hub driver's release more robust
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 4 May 2007 15:55:11 +0000 (11:55 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jul 2007 23:29:46 +0000 (16:29 -0700)
commite8054854221d9d51e381c64d365404f4c1c30f50
treef7efd45bce5842dde7986aa700dab09548e8c7d4
parent06b84e8adcad8280d76a7c71e772c5cddba96d85
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>
drivers/usb/core/hub.c