diff options
author | Johan Hovold <jhovold@gmail.com> | 2012-10-25 10:28:59 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-25 09:36:57 -0700 |
commit | 50dde8686eec41bf3d7cbec7a6f76c073ab01903 (patch) | |
tree | 6353829484f34cc1269d55e57ab32eb002ead831 /drivers/usb/serial/whiteheat.c | |
parent | d7870af7e2e3a91b462075ec1ca669b482215187 (diff) | |
download | op-kernel-dev-50dde8686eec41bf3d7cbec7a6f76c073ab01903.zip op-kernel-dev-50dde8686eec41bf3d7cbec7a6f76c073ab01903.tar.gz |
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 'drivers/usb/serial/whiteheat.c')
0 files changed, 0 insertions, 0 deletions