Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189165
b: refs/heads/master
c: ac90a14
h: refs/heads/master
i:
  189163: a35f8d2
v: v3
  • Loading branch information
Kyle McMartin authored and David S. Miller committed Mar 27, 2010
1 parent c464cfa commit 9528cb2
Show file tree
Hide file tree
Showing 2 changed files with 6 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: a6d36d5689b1806a3365c909192e9f03a43a632b
refs/heads/master: ac90a149361a331f697d5aa500bedcff22054669
8 changes: 5 additions & 3 deletions trunk/drivers/net/tulip/uli526x.c
Original file line number Diff line number Diff line change
Expand Up @@ -851,13 +851,15 @@ static void uli526x_rx_packet(struct net_device *dev, struct uli526x_board_info

if ( !(rdes0 & 0x8000) ||
((db->cr6_data & CR6_PM) && (rxlen>6)) ) {
struct sk_buff *new_skb = NULL;

skb = rxptr->rx_skb_ptr;

/* Good packet, send to upper layer */
/* Shorst packet used new SKB */
if ( (rxlen < RX_COPY_SIZE) &&
( (skb = dev_alloc_skb(rxlen + 2) )
!= NULL) ) {
if ((rxlen < RX_COPY_SIZE) &&
((new_skb = dev_alloc_skb(rxlen + 2) != NULL))) {
skb = new_skb;
/* size less than COPY_SIZE, allocate a rxlen SKB */
skb_reserve(skb, 2); /* 16byte align */
memcpy(skb_put(skb, rxlen),
Expand Down

0 comments on commit 9528cb2

Please sign in to comment.