aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dm9000.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/dm9000.c')
-rw-r--r--drivers/net/dm9000.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c
index 81590fbb9943..0cbe3c0e7c06 100644
--- a/drivers/net/dm9000.c
+++ b/drivers/net/dm9000.c
@@ -1024,8 +1024,8 @@ dm9000_rx(struct net_device *dev)
1024 } 1024 }
1025 1025
1026 /* Move data from DM9000 */ 1026 /* Move data from DM9000 */
1027 if (GoodPacket 1027 if (GoodPacket &&
1028 && ((skb = dev_alloc_skb(RxLen + 4)) != NULL)) { 1028 ((skb = dev_alloc_skb(RxLen + 4)) != NULL)) {
1029 skb_reserve(skb, 2); 1029 skb_reserve(skb, 2);
1030 rdptr = (u8 *) skb_put(skb, RxLen - 4); 1030 rdptr = (u8 *) skb_put(skb, RxLen - 4);
1031 1031