]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.14-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Jun 2019 05:57:11 +0000 (07:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Jun 2019 05:57:11 +0000 (07:57 +0200)
added patches:
ipv4-define-__ipv4_neigh_lookup_noref-when-config_inet-is-disabled.patch

queue-4.14/ipv4-define-__ipv4_neigh_lookup_noref-when-config_inet-is-disabled.patch [new file with mode: 0644]
queue-4.14/series

diff --git a/queue-4.14/ipv4-define-__ipv4_neigh_lookup_noref-when-config_inet-is-disabled.patch b/queue-4.14/ipv4-define-__ipv4_neigh_lookup_noref-when-config_inet-is-disabled.patch
new file mode 100644 (file)
index 0000000..3b4db6a
--- /dev/null
@@ -0,0 +1,46 @@
+From 9b3040a6aafd7898ece7fc7efcbca71e42aa8069 Mon Sep 17 00:00:00 2001
+From: David Ahern <dsahern@gmail.com>
+Date: Sun, 5 May 2019 11:16:20 -0700
+Subject: ipv4: Define __ipv4_neigh_lookup_noref when CONFIG_INET is disabled
+
+From: David Ahern <dsahern@gmail.com>
+
+commit 9b3040a6aafd7898ece7fc7efcbca71e42aa8069 upstream.
+
+Define __ipv4_neigh_lookup_noref to return NULL when CONFIG_INET is disabled.
+
+Fixes: 4b2a2bfeb3f0 ("neighbor: Call __ipv4_neigh_lookup_noref in neigh_xmit")
+Reported-by: kbuild test robot <lkp@intel.com>
+Signed-off-by: David Ahern <dsahern@gmail.com>
+Signed-off-by: David S. Miller <davem@davemloft.net>
+Cc: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ include/net/arp.h |    8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+--- a/include/net/arp.h
++++ b/include/net/arp.h
+@@ -18,6 +18,7 @@ static inline u32 arp_hashfn(const void
+       return val * hash_rnd[0];
+ }
++#ifdef CONFIG_INET
+ static inline struct neighbour *__ipv4_neigh_lookup_noref(struct net_device *dev, u32 key)
+ {
+       if (dev->flags & (IFF_LOOPBACK | IFF_POINTOPOINT))
+@@ -25,6 +26,13 @@ static inline struct neighbour *__ipv4_n
+       return ___neigh_lookup_noref(&arp_tbl, neigh_key_eq32, arp_hashfn, &key, dev);
+ }
++#else
++static inline
++struct neighbour *__ipv4_neigh_lookup_noref(struct net_device *dev, u32 key)
++{
++      return NULL;
++}
++#endif
+ static inline struct neighbour *__ipv4_neigh_lookup(struct net_device *dev, u32 key)
+ {
index 5f55829a548d52508357b05495d8f1ef6347c146..128e6e0806cc654b0345e4287903ad99159e5169 100644 (file)
@@ -33,3 +33,4 @@ tty-serial_core-add-install.patch
 qmi_wwan-add-quirk-for-quectel-dynamic-config.patch
 fs-stream_open-opener-for-stream-like-files-so-that-read-and-write-can-run-simultaneously-without-deadlock.patch
 fuse-add-fopen_stream-to-use-stream_open.patch
+ipv4-define-__ipv4_neigh_lookup_noref-when-config_inet-is-disabled.patch