diff options
| author | David S. Miller <davem@davemloft.net> | 2010-04-06 23:53:30 -0700 | 
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2010-04-06 23:53:30 -0700 | 
| commit | 4a35ecf8bf1c4b039503fa554100fe85c761de76 (patch) | |
| tree | 9b75f5d5636004d9a9aa496924377379be09aa1f /drivers/net/tulip/uli526x.c | |
| parent | b4d562e3c3553ac58c7120555c4e4aefbb090a2a (diff) | |
| parent | fb9e2d887243499b8d28efcf80821c4f6a092395 (diff) | |
| download | olio-linux-3.10-4a35ecf8bf1c4b039503fa554100fe85c761de76.tar.xz olio-linux-3.10-4a35ecf8bf1c4b039503fa554100fe85c761de76.zip  | |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
	drivers/net/bonding/bond_main.c
	drivers/net/via-velocity.c
	drivers/net/wireless/iwlwifi/iwl-agn.c
Diffstat (limited to 'drivers/net/tulip/uli526x.c')
| -rw-r--r-- | drivers/net/tulip/uli526x.c | 8 | 
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/tulip/uli526x.c b/drivers/net/tulip/uli526x.c index b79d908fe34..7063f56640c 100644 --- a/drivers/net/tulip/uli526x.c +++ b/drivers/net/tulip/uli526x.c @@ -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),  |