[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, &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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue