]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: ch341: fix port-data memory leak
authorJohan Hovold <jhovold@gmail.com>
Thu, 25 Oct 2012 08:29:03 +0000 (10:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Oct 2012 17:10:02 +0000 (10:10 -0700)
commit226c125e2f5b479dc1fee67bbd3a84c90021c816
treeb3a7478aed6417db0eb09786ac79b06c2448f145
parent34a2ee3523326ee24676077b8c796719dfcf0efd
USB: ch341: fix port-data memory leak

commit 456c5be56ed070a4d883c60b587bcc1c97a8cf3e upstream.

Fix port-data memory leak by moving port data allocation to port_probe
and actually implementing deallocation.

Note that this driver has never even bothered to try to deallocate it's
port data...

Compile-only tested.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/ch341.c