aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/hamachi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/hamachi.c')
-rw-r--r--drivers/net/hamachi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/hamachi.c b/drivers/net/hamachi.c
index 5d8c6333070e..ea85075a89a2 100644
--- a/drivers/net/hamachi.c
+++ b/drivers/net/hamachi.c
@@ -1566,8 +1566,8 @@ static int hamachi_rx(struct net_device *dev)
1566#endif 1566#endif
1567 /* Check if the packet is long enough to accept without copying 1567 /* Check if the packet is long enough to accept without copying
1568 to a minimally-sized skbuff. */ 1568 to a minimally-sized skbuff. */
1569 if (pkt_len < rx_copybreak 1569 if (pkt_len < rx_copybreak &&
1570 && (skb = dev_alloc_skb(pkt_len + 2)) != NULL) { 1570 (skb = dev_alloc_skb(pkt_len + 2)) != NULL) {
1571#ifdef RX_CHECKSUM 1571#ifdef RX_CHECKSUM
1572 printk(KERN_ERR "%s: rx_copybreak non-zero " 1572 printk(KERN_ERR "%s: rx_copybreak non-zero "
1573 "not good with RX_CHECKSUM\n", dev->name); 1573 "not good with RX_CHECKSUM\n", dev->name);
@@ -1722,10 +1722,10 @@ static void hamachi_error(struct net_device *dev, int intr_status)
1722 readl(ioaddr + 0x370); 1722 readl(ioaddr + 0x370);
1723 readl(ioaddr + 0x3F0); 1723 readl(ioaddr + 0x3F0);
1724 } 1724 }
1725 if ((intr_status & ~(LinkChange|StatsMax|NegotiationChange|IntrRxDone|IntrTxDone)) 1725 if ((intr_status & ~(LinkChange|StatsMax|NegotiationChange|IntrRxDone|IntrTxDone)) &&
1726 && hamachi_debug) 1726 hamachi_debug)
1727 printk(KERN_ERR "%s: Something Wicked happened! %4.4x.\n", 1727 printk(KERN_ERR "%s: Something Wicked happened! %4.4x.\n",
1728 dev->name, intr_status); 1728 dev->name, intr_status);
1729 /* Hmmmmm, it's not clear how to recover from PCI faults. */ 1729 /* Hmmmmm, it's not clear how to recover from PCI faults. */
1730 if (intr_status & (IntrTxPCIErr | IntrTxPCIFault)) 1730 if (intr_status & (IntrTxPCIErr | IntrTxPCIFault))
1731 hmp->stats.tx_fifo_errors++; 1731 hmp->stats.tx_fifo_errors++;