summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2006-04-26 08:20:48 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-04-26 16:52:21 +0200
commitc82ffb07cd1aa356c599999c4f0dc5155a91d318 (patch)
tree09676dec03ae8ec5df1dc11102db24d9fa1ef393
parentMerge branch 'splice' of git://brick.kernel.dk/data/git/linux-2.6-block (diff)
downloadlinux-c82ffb07cd1aa356c599999c4f0dc5155a91d318.tar.xz
linux-c82ffb07cd1aa356c599999c4f0dc5155a91d318.zip
[PATCH] fix leak in activate_ep_files()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/usb/gadget/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/inode.c b/drivers/usb/gadget/inode.c
index 42b457030b03..0eb010a3f5bc 100644
--- a/drivers/usb/gadget/inode.c
+++ b/drivers/usb/gadget/inode.c
@@ -1614,6 +1614,7 @@ static int activate_ep_files (struct dev_data *dev)
data, &ep_config_operations,
&data->dentry);
if (!data->inode) {
+ usb_ep_free_request(ep, data->req);
kfree (data);
goto enomem;
}