https://github.com/torvalds/linux
Revision 289b076f89c2c3260e914dad18ae12f193ea86d5 authored by Johan Hovold on 17 October 2012, 14:31:32 UTC, committed by Greg Kroah-Hartman on 17 October 2012, 20:47:59 UTC
Fix port-data memory leak by replacing attach and release with
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 5363655
History
Tip revision: 289b076f89c2c3260e914dad18ae12f193ea86d5 authored by Johan Hovold on 17 October 2012, 14:31:32 UTC
USB: oti6858: fix port-data memory leak
Tip revision: 289b076

back to top