https://github.com/torvalds/linux
Revision c27f3efc56080a246f6ab7f57f0a6f56d256d769 authored by Johan Hovold on 17 October 2012, 11:34:57 UTC, committed by Greg Kroah-Hartman on 17 October 2012, 20:47:58 UTC
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.

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>
1 parent 95940a0
History
Tip revision: c27f3efc56080a246f6ab7f57f0a6f56d256d769 authored by Johan Hovold on 17 October 2012, 11:34:57 UTC
USB: io_edgeport: fix port-data memory leak
Tip revision: c27f3ef
File Mode Size
Kconfig -rw-r--r-- 1.3 KB
Makefile -rw-r--r-- 178 bytes
xz_crc32.c -rw-r--r-- 1.2 KB
xz_dec_bcj.c -rw-r--r-- 13.6 KB
xz_dec_lzma2.c -rw-r--r-- 28.4 KB
xz_dec_stream.c -rw-r--r-- 19.3 KB
xz_dec_syms.c -rw-r--r-- 664 bytes
xz_dec_test.c -rw-r--r-- 5.2 KB
xz_lzma2.h -rw-r--r-- 6.0 KB
xz_private.h -rw-r--r-- 4.4 KB
xz_stream.h -rw-r--r-- 1.4 KB

back to top