[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>
This commit is contained in:
Al Viro 2006-04-26 07:20:48 +01:00 committed by Linus Torvalds
parent 7b97ebfb93
commit c82ffb07cd
1 changed files with 1 additions and 0 deletions

View File

@ -1614,6 +1614,7 @@ static int activate_ep_files (struct dev_data *dev)
data, &ep_config_operations, data, &ep_config_operations,
&data->dentry); &data->dentry);
if (!data->inode) { if (!data->inode) {
usb_ep_free_request(ep, data->req);
kfree (data); kfree (data);
goto enomem; goto enomem;
} }