[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:
parent
7b97ebfb93
commit
c82ffb07cd
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue