]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: whiteheat: fix memory leak in error path
authorJohan Hovold <jhovold@gmail.com>
Thu, 25 Oct 2012 08:29:01 +0000 (10:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Oct 2012 17:02:59 +0000 (10:02 -0700)
commit02c6b1fd52e8987597f847aecc3a74c09a48083b
tree9134ca27563d43559001dd4be8fd8659e2dec15d
parent891fe9688fbd2ef1c04d8314b74c0037be2adb89
USB: whiteheat: fix memory leak in error path

commit c129197c99550d356cf5f69b046994dd53cd1b9d upstream.

Make sure command buffer is deallocated in case of errors during attach.

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