Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202745
b: refs/heads/master
c: 0273002
h: refs/heads/master
i:
  202743: b3e8f62
v: v3
  • Loading branch information
Julia Lawall authored and John W. Linville committed Jun 2, 2010
1 parent b27de20 commit 1399d21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 80caf6017ace944035210ca2bba7abeb85eb0c5c
refs/heads/master: 02730029530e7ca2a4d413d6afa67bbc9548c8c2
5 changes: 2 additions & 3 deletions trunk/drivers/net/wireless/libertas_tf/if_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -538,16 +538,15 @@ static void if_usb_receive_fwload(struct urb *urb)
return;
}

syncfwheader = kmalloc(sizeof(struct fwsyncheader), GFP_ATOMIC);
syncfwheader = kmemdup(skb->data, sizeof(struct fwsyncheader),
GFP_ATOMIC);
if (!syncfwheader) {
lbtf_deb_usbd(&cardp->udev->dev, "Failure to allocate syncfwheader\n");
kfree_skb(skb);
lbtf_deb_leave(LBTF_DEB_USB);
return;
}

memcpy(syncfwheader, skb->data, sizeof(struct fwsyncheader));

if (!syncfwheader->cmd) {
lbtf_deb_usb2(&cardp->udev->dev, "FW received Blk with correct CRC\n");
lbtf_deb_usb2(&cardp->udev->dev, "FW received Blk seqnum = %d\n",
Expand Down

0 comments on commit 1399d21

Please sign in to comment.