Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265147
b: refs/heads/master
c: 0f8fd43
h: refs/heads/master
i:
  265145: 28ef2f7
  265143: 0136d08
v: v3
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Oct 18, 2011
1 parent 3d13553 commit daab8ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0889551267e7b6b4d27dc9f726f3d0cb0d976105
refs/heads/master: 0f8fd43c42f2cc249943be76a4db0d058c16b6dc
4 changes: 3 additions & 1 deletion trunk/drivers/usb/gadget/f_midi.c
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ int __init f_midi_bind_config(struct usb_configuration *c,
struct gmidi_in_port *port = kzalloc(sizeof(*port), GFP_KERNEL);
if (!port) {
status = -ENOMEM;
goto fail;
goto setup_fail;
}

port->midi = midi;
Expand Down Expand Up @@ -989,6 +989,8 @@ int __init f_midi_bind_config(struct usb_configuration *c,
return 0;

setup_fail:
for (--i; i >= 0; i--)
kfree(midi->in_port[i]);
kfree(midi);
fail:
return status;
Expand Down

0 comments on commit daab8ac

Please sign in to comment.