aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/xircom/xirc2ps_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/xircom/xirc2ps_cs.c')
-rw-r--r--drivers/net/ethernet/xircom/xirc2ps_cs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/xircom/xirc2ps_cs.c b/drivers/net/ethernet/xircom/xirc2ps_cs.c
index 33979c3ac943..5c69c6f93fb8 100644
--- a/drivers/net/ethernet/xircom/xirc2ps_cs.c
+++ b/drivers/net/ethernet/xircom/xirc2ps_cs.c
@@ -1039,7 +1039,8 @@ xirc2ps_interrupt(int irq, void *dev_id)
1039 1039
1040 pr_debug("rsr=%#02x packet_length=%u\n", rsr, pktlen); 1040 pr_debug("rsr=%#02x packet_length=%u\n", rsr, pktlen);
1041 1041
1042 skb = dev_alloc_skb(pktlen+3); /* 1 extra so we can use insw */ 1042 /* 1 extra so we can use insw */
1043 skb = netdev_alloc_skb(dev, pktlen + 3);
1043 if (!skb) { 1044 if (!skb) {
1044 pr_notice("low memory, packet dropped (size=%u)\n", pktlen); 1045 pr_notice("low memory, packet dropped (size=%u)\n", pktlen);
1045 dev->stats.rx_dropped++; 1046 dev->stats.rx_dropped++;