diff options
author | Johan Hovold <jhovold@gmail.com> | 2012-10-15 17:47:21 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-16 21:25:54 +0400 |
commit | 8bf769eb5f6efc33f95088850f33fcc05d28b508 (patch) | |
tree | e108decc83c67db5687765419ea594477b5cd246 /include/linux/usb.h | |
parent | 4295fe7791a1b20c90cbaaa6f23f2fb94218b8a7 (diff) | |
download | linux-8bf769eb5f6efc33f95088850f33fcc05d28b508.tar.xz |
USB: pl2303: fix port-data memory leak
Fix port-data memory leak by allocating and freeing port data in
port_probe/remove rather than in attach/release, and by introducing
serial private data to store the device type which is interface rather
than port specific.
Since commit 0998d0631001288 (device-core: Ensure drvdata = NULL when no
driver is bound) the port private data is no longer freed at release.
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 'include/linux/usb.h')
0 files changed, 0 insertions, 0 deletions