From: Johan Hovold Date: Mon, 15 Oct 2012 13:47:21 +0000 (+0200) Subject: USB: pl2303: fix port-data memory leak X-Git-Tag: v3.7-rc2~17^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bf769eb5f6efc33f95088850f33fcc05d28b508;p=pandora-kernel.git 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: Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed