summaryrefslogtreecommitdiff
path: root/net/can
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2012-10-25 16:56:34 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-25 18:11:19 (GMT)
commit80c00750f0c9867a65b30a17880939b6bc660a77 (patch)
treeb8bc2072f4df67ad5889b95fc19957b4af466ee0 /net/can
parente681b66f2e19fadbe8a7e2a17900978cb6bc921f (diff)
downloadlinux-80c00750f0c9867a65b30a17880939b6bc660a77.tar.xz
USB: mos7840: fix port-data memory leak
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. Note that the indentation was kept intact using a do-while(0) in order to facilitate review. A follow-up patch will remove it. Compile-only tested. Signed-off-by: Johan Hovold <jhovold@gmail.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/can')
0 files changed, 0 insertions, 0 deletions