Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156898
b: refs/heads/master
c: 839d162
h: refs/heads/master
v: v3
  • Loading branch information
Francois Romieu authored and David S. Miller committed Aug 13, 2009
1 parent 1c6b2e5 commit 2b2e995
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: 9799218ae36910af50f002a5db1802d576fffb43
refs/heads/master: 839d1624b9dcf31fdc02e47359043bb7bd71d6ca
5 changes: 2 additions & 3 deletions trunk/drivers/net/8139cp.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ static int cp_rx_poll(struct napi_struct *napi, int budget)
dma_addr_t mapping;
struct sk_buff *skb, *new_skb;
struct cp_desc *desc;
unsigned buflen;
const unsigned buflen = cp->rx_buf_sz;

skb = cp->rx_skb[rx_tail];
BUG_ON(!skb);
Expand Down Expand Up @@ -549,8 +549,7 @@ static int cp_rx_poll(struct napi_struct *napi, int budget)
pr_debug("%s: rx slot %d status 0x%x len %d\n",
dev->name, rx_tail, status, len);

buflen = cp->rx_buf_sz + NET_IP_ALIGN;
new_skb = netdev_alloc_skb(dev, buflen);
new_skb = netdev_alloc_skb(dev, buflen + NET_IP_ALIGN);
if (!new_skb) {
dev->stats.rx_dropped++;
goto rx_next;
Expand Down

0 comments on commit 2b2e995

Please sign in to comment.