Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10945
b: refs/heads/master
c: 63f57fb
h: refs/heads/master
i:
  10943: 31ef474
v: v3
  • Loading branch information
Andrew Morton authored and Jeff Garzik committed Oct 28, 2005
1 parent d420dc4 commit 9a83d4d
Show file tree
Hide file tree
Showing 2 changed files with 5 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: a7ec15da65ab64c5f97beedc4ff21cf3e0ae71c0
refs/heads/master: 63f57fb69b017230c77c40f1713e40885ae6d159
6 changes: 4 additions & 2 deletions trunk/drivers/net/wireless/orinoco.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,8 @@ static int orinoco_xmit(struct sk_buff *skb, struct net_device *dev)
return 0;
}

/* Check packet length, pad short packets, round up odd length */
/* Length of the packet body */
/* FIXME: what if the skb is smaller than this? */
len = max_t(int, ALIGN(skb->len, 2), ETH_ZLEN);
skb = skb_padto(skb, len);
if (skb == NULL)
Expand Down Expand Up @@ -547,7 +548,8 @@ static int orinoco_xmit(struct sk_buff *skb, struct net_device *dev)
p = skb->data;
}

err = hermes_bap_pwrite(hw, USER_BAP, p, data_len,
/* Round up for odd length packets */
err = hermes_bap_pwrite(hw, USER_BAP, p, ALIGN(data_len, 2),
txfid, data_off);
if (err) {
printk(KERN_ERR "%s: Error %d writing packet to BAP\n",
Expand Down

0 comments on commit 9a83d4d

Please sign in to comment.