summaryrefslogtreecommitdiff
path: root/firmware/yam
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2012-10-25 08:28:59 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-25 16:36:57 (GMT)
commit50dde8686eec41bf3d7cbec7a6f76c073ab01903 (patch)
tree6353829484f34cc1269d55e57ab32eb002ead831 /firmware/yam
parentd7870af7e2e3a91b462075ec1ca669b482215187 (diff)
downloadlinux-50dde8686eec41bf3d7cbec7a6f76c073ab01903.tar.xz
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 'firmware/yam')
0 files changed, 0 insertions, 0 deletions