OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab366c1
)
staging: usbip: fix memory leak
author
Kulikov Vasiliy
<segooon@gmail.com>
Mon, 12 Jul 2010 14:48:46 +0000
(18:48 +0400)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 22 Jul 2010 18:33:49 +0000
(11:33 -0700)
sdev should be freed if stub_add_files() failed.
Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/usbip/stub_dev.c
patch
|
blob
|
history
diff --git
a/drivers/staging/usbip/stub_dev.c
b/drivers/staging/usbip/stub_dev.c
index
3f95605
..
1f40851
100644
(file)
--- a/
drivers/staging/usbip/stub_dev.c
+++ b/
drivers/staging/usbip/stub_dev.c
@@
-438,6
+438,8
@@
static int stub_probe(struct usb_interface *interface,
if (err) {
dev_err(&interface->dev, "create sysfs files for %s\n",
udev_busid);
+ usb_set_intfdata(interface, 0);
+ stub_device_free(sdev);
return err;
}