diff options
author | Johan Hovold <jhovold@gmail.com> | 2012-10-25 08:29:19 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-25 16:37:13 (GMT) |
commit | f525c05babc7938cc1d4236550fd8a659fb05960 (patch) | |
tree | bf5923b4ddf04ddd25ee199e4728c9d9c4de1c52 /.gitignore | |
parent | 084817d79399ab5ccab2f90a148b0369912a8369 (diff) | |
download | linux-f525c05babc7938cc1d4236550fd8a659fb05960.tar.xz |
USB: sierra: 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 also that urb-count for multi-port interfaces has not been changed
even though the usb-serial port number is now determined from the port
and interface minor numbers.
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 '.gitignore')
0 files changed, 0 insertions, 0 deletions