[PATCH] fix leak in activate_ep_files()
authorAl Viro <viro@ftp.linux.org.uk>
Wed, 26 Apr 2006 06:20:48 +0000 (07:20 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 26 Apr 2006 14:52:21 +0000 (07:52 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/usb/gadget/inode.c

index 42b457030b0310420931fc481e6f2d7316f87fd3..0eb010a3f5bc331d52e4fc4c3819eeca57e897d2 100644 (file)
@@ -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;
                }