[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
@ -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 New Issue
Block a user