diff options
author | Johan Hovold <jhovold@gmail.com> | 2012-10-25 12:29:01 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-31 21:02:59 +0400 |
commit | 02c6b1fd52e8987597f847aecc3a74c09a48083b (patch) | |
tree | 9134ca27563d43559001dd4be8fd8659e2dec15d | |
parent | 891fe9688fbd2ef1c04d8314b74c0037be2adb89 (diff) | |
download | linux-02c6b1fd52e8987597f847aecc3a74c09a48083b.tar.xz |
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>
-rw-r--r-- | drivers/usb/serial/whiteheat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/serial/whiteheat.c b/drivers/usb/serial/whiteheat.c index 407e23c87946..171226ab56f2 100644 --- a/drivers/usb/serial/whiteheat.c +++ b/drivers/usb/serial/whiteheat.c @@ -525,6 +525,7 @@ no_firmware: "%s: please contact support@connecttech.com\n", serial->type->description); kfree(result); + kfree(command); return -ENODEV; no_command_private: |