projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
974ee86
)
USB: whiteheat: fix memory leak in error path
author
Johan Hovold
<jhovold@gmail.com>
Thu, 25 Oct 2012 08:29:01 +0000
(10:29 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 31 Oct 2012 16:51:35 +0000
(09:51 -0700)
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
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/whiteheat.c
b/drivers/usb/serial/whiteheat.c
index 5b073bcc807b3a9557c07409cb81b457310fae98..59d646d207bc2cdb9b3fc7b02ed28a59bb237d5e 100644
(file)
--- a/
drivers/usb/serial/whiteheat.c
+++ b/
drivers/usb/serial/whiteheat.c
@@
-576,6
+576,7
@@
no_firmware:
"%s: please contact support@connecttech.com\n",
serial->type->description);
kfree(result);
+ kfree(command);
return -ENODEV;
no_command_private: