* [B.A.T.M.A.N.] [PATCH] batman-adv: backport eth_hdr() compat fix to avoid kernel oops
@ 2014-02-02 14:53 Marek Lindner
2014-02-08 13:14 ` Marek Lindner
0 siblings, 1 reply; 2+ messages in thread
From: Marek Lindner @ 2014-02-02 14:53 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Marek Lindner
From: Linus Lüssing <linus.luessing@web.de>
Introduced by 41b38727749a94c1a65cf0f4be9bfe1cbaf0adeb
("batman-adv: fix potential kernel paging error for unicast transmissions")
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
CC: Linus Lüssing <linus.luessing@web.de>
---
compat.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/compat.h b/compat.h
index a4ab202..deea92b 100644
--- a/compat.h
+++ b/compat.h
@@ -289,6 +289,17 @@ static int batadv_interface_set_mac_addr(struct net_device *dev, void *p) \
}\
static int __batadv_interface_set_mac_addr(x, y)
+#define batadv_interface_tx(x, y) \
+__batadv_interface_tx(struct sk_buff *skb, struct net_device *soft_iface); \
+static int batadv_interface_tx(struct sk_buff *skb, \
+ struct net_device *soft_iface) \
+{ \
+ skb_reset_mac_header(skb); \
+ return __batadv_interface_tx(skb, soft_iface); \
+} \
+static int __batadv_interface_tx(struct sk_buff *skb, \
+ struct net_device *soft_iface)
+
#define netdev_master_upper_dev_link netdev_set_master
#define netdev_upper_dev_unlink(slave, master) netdev_set_master(slave, NULL)
#define netdev_master_upper_dev_get(dev) \
--
1.8.5.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: backport eth_hdr() compat fix to avoid kernel oops
2014-02-02 14:53 [B.A.T.M.A.N.] [PATCH] batman-adv: backport eth_hdr() compat fix to avoid kernel oops Marek Lindner
@ 2014-02-08 13:14 ` Marek Lindner
0 siblings, 0 replies; 2+ messages in thread
From: Marek Lindner @ 2014-02-08 13:14 UTC (permalink / raw)
To: b.a.t.m.a.n
[-- Attachment #1: Type: text/plain, Size: 486 bytes --]
On Sunday 02 February 2014 22:53:11 Marek Lindner wrote:
> From: Linus Lüssing <linus.luessing@web.de>
>
> Introduced by 41b38727749a94c1a65cf0f4be9bfe1cbaf0adeb
> ("batman-adv: fix potential kernel paging error for unicast
> transmissions")
>
> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
> CC: Linus Lüssing <linus.luessing@web.de>
> ---
> compat.h | 11 +++++++++++
> 1 file changed, 11 insertions(+)
Applied in revision b921e8f.
Thanks,
Marek
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-08 13:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-02 14:53 [B.A.T.M.A.N.] [PATCH] batman-adv: backport eth_hdr() compat fix to avoid kernel oops Marek Lindner
2014-02-08 13:14 ` Marek Lindner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.