Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280977
b: refs/heads/master
c: cff8638
h: refs/heads/master
i:
  280975: 24cfe6e
v: v3
  • Loading branch information
Thomas Meyer authored and Greg Kroah-Hartman committed Nov 27, 2011
1 parent 6c23dec commit 5db7da1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: 140e28b83c4a31831cbf293d9cab20c603821202
refs/heads/master: cff863871e748d072cae002fb13e692436b0200a
3 changes: 1 addition & 2 deletions trunk/drivers/staging/line6/midi.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,14 @@ static int send_midi_async(struct usb_line6 *line6, unsigned char *data,
line6_write_hexdump(line6, 'S', data, length);
#endif

transfer_buffer = kmalloc(length, GFP_ATOMIC);
transfer_buffer = kmemdup(data, length, GFP_ATOMIC);

if (transfer_buffer == NULL) {
usb_free_urb(urb);
dev_err(line6->ifcdev, "Out of memory\n");
return -ENOMEM;
}

memcpy(transfer_buffer, data, length);
usb_fill_int_urb(urb, line6->usbdev,
usb_sndbulkpipe(line6->usbdev,
line6->ep_control_write),
Expand Down

0 comments on commit 5db7da1

Please sign in to comment.