From: Al Viro Date: Wed, 26 Apr 2006 06:20:48 +0000 (+0100) Subject: [PATCH] fix leak in activate_ep_files() X-Git-Tag: v2.6.17-rc3~9 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c82ffb07cd1aa356c599999c4f0dc5155a91d318;p=linux-2.6 [PATCH] fix leak in activate_ep_files() Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- diff --git a/drivers/usb/gadget/inode.c b/drivers/usb/gadget/inode.c index 42b457030b..0eb010a3f5 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; }