diff options
author | 2012-10-25 10:28:59 +0200 | |
---|---|---|
committer | 2012-10-25 09:36:57 -0700 | |
commit | 50dde8686eec41bf3d7cbec7a6f76c073ab01903 (patch) | |
tree | 6353829484f34cc1269d55e57ab32eb002ead831 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | usb-storage: add unusual_devs entry for Casio EX-N1 digital camera (diff) | |
download | linux-dev-50dde8686eec41bf3d7cbec7a6f76c073ab01903.tar.xz linux-dev-50dde8686eec41bf3d7cbec7a6f76c073ab01903.zip |
USB: metro-usb: fix port-data memory leak
Fix port-data memory leak by moving port data allocation and
deallocation to port_probe and port_remove.
Since commit 0998d0631001288 (device-core: Ensure drvdata = NULL when no
driver is bound) the port private data is no longer freed at release as
it is no longer accessible.
Note that the call to metrousb_clean (close) in shutdown was redundant.
Compile-only tested.
Cc: <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions