Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277719
b: refs/heads/master
c: 7f103a0
h: refs/heads/master
i:
  277717: 8889df2
  277715: 4214dec
  277711: 34d3159
v: v3
  • Loading branch information
David Herrmann authored and Gustavo F. Padovan committed Nov 7, 2011
1 parent 82cda04 commit 5ff281c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 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: deceb024f1083d7eecaba7f2ee65d57f31f91bd5
refs/heads/master: 7f103a0d23d2778b86cea407c1992522d41ead81
13 changes: 7 additions & 6 deletions trunk/drivers/bluetooth/bfusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,22 +568,23 @@ static int bfusb_load_firmware(struct bfusb_data *data,

BT_INFO("BlueFRITZ! USB loading firmware");

buf = kmalloc(BFUSB_MAX_BLOCK_SIZE + 3, GFP_KERNEL);
if (!buf) {
BT_ERR("Can't allocate memory chunk for firmware");
return -ENOMEM;
}

pipe = usb_sndctrlpipe(data->udev, 0);

if (usb_control_msg(data->udev, pipe, USB_REQ_SET_CONFIGURATION,
0, 1, 0, NULL, 0, USB_CTRL_SET_TIMEOUT) < 0) {
BT_ERR("Can't change to loading configuration");
kfree(buf);
return -EBUSY;
}

data->udev->toggle[0] = data->udev->toggle[1] = 0;

buf = kmalloc(BFUSB_MAX_BLOCK_SIZE + 3, GFP_ATOMIC);
if (!buf) {
BT_ERR("Can't allocate memory chunk for firmware");
return -ENOMEM;
}

pipe = usb_sndbulkpipe(data->udev, data->bulk_out_ep);

while (count) {
Expand Down

0 comments on commit 5ff281c

Please sign in to comment.