Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303808
b: refs/heads/master
c: 124ef38
h: refs/heads/master
v: v3
  • Loading branch information
Yongsul Oh authored and Felipe Balbi committed May 4, 2012
1 parent 9a2c6b9 commit 85536f0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c2484606a105e35a9bbbfafa41ee32683b82cf5a
refs/heads/master: 124ef389256f71042ab5dedde98dee5e9999a635
13 changes: 13 additions & 0 deletions trunk/drivers/usb/gadget/composite.c
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,19 @@ int usb_add_config(struct usb_composite_dev *cdev,

status = bind(config);
if (status < 0) {
while (!list_empty(&config->functions)) {
struct usb_function *f;

f = list_first_entry(&config->functions,
struct usb_function, list);
list_del(&f->list);
if (f->unbind) {
DBG(cdev, "unbind function '%s'/%p\n",
f->name, f);
f->unbind(config, f);
/* may free memory for "f" */
}
}
list_del(&config->list);
config->cdev = NULL;
} else {
Expand Down

0 comments on commit 85536f0

Please sign in to comment.