remove header_ops bug in qeth driver
authorUrsula Braun <braunu@de.ibm.com>
Mon, 22 Oct 2007 14:16:14 +0000 (16:16 +0200)
committerJeff Garzik <jeff@garzik.org>
Wed, 24 Oct 2007 00:18:13 +0000 (20:18 -0400)
Remove qeth bug caused by commit:
[NET]: Move hardware header operations out of netdevice.

This is the second part of the qeth header_ops patch, since
first patch sent 10/19 has been insufficient.
Nevertheless first patch is still valid and should be kept.

Signed-off-by: Ursula Braun <braunu@de.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
include/linux/netdevice.h

index 4a3f54e358e52f7505a8d13aa2a9938941233746..c4de536cefa36e02b5fae073dcb3074e0682c92f 100644 (file)
@@ -834,7 +834,7 @@ static inline int dev_hard_header(struct sk_buff *skb, struct net_device *dev,
                                  const void *daddr, const void *saddr,
                                  unsigned len)
 {
-       if (!dev->header_ops)
+       if (!dev->header_ops || !dev->header_ops->create)
                return 0;
 
        return dev->header_ops->create(skb, dev, type, daddr, saddr, len);