Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203838
b: refs/heads/master
c: 5ee283c
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Marcel Holtmann committed Jul 21, 2010
1 parent 5f72298 commit 6021607
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: d1d10d783089cc26a14be92fc12fccda9aa6593a
refs/heads/master: 5ee283c063a236b19e4582c675a2d8d615d5809c
3 changes: 1 addition & 2 deletions trunk/drivers/bluetooth/bcm203x.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ static int bcm203x_probe(struct usb_interface *intf, const struct usb_device_id

BT_DBG("firmware data %p size %zu", firmware->data, firmware->size);

data->fw_data = kmalloc(firmware->size, GFP_KERNEL);
data->fw_data = kmemdup(firmware->data, firmware->size, GFP_KERNEL);
if (!data->fw_data) {
BT_ERR("Can't allocate memory for firmware image");
release_firmware(firmware);
Expand All @@ -234,7 +234,6 @@ static int bcm203x_probe(struct usb_interface *intf, const struct usb_device_id
return -ENOMEM;
}

memcpy(data->fw_data, firmware->data, firmware->size);
data->fw_size = firmware->size;
data->fw_sent = 0;

Expand Down

0 comments on commit 6021607

Please sign in to comment.