diff options
author | David Howells <dhowells@redhat.com> | 2022-11-10 12:39:39 +0300 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2022-11-14 12:31:55 +0300 |
commit | 41cf3a9156ba8e13e557e7908f9e22563b1f2828 (patch) | |
tree | 93f9f69009286ee8b08f3aec22956b98283abc09 /net/rxrpc/local_object.c | |
parent | b548b17a93fd18357a5a6f535c10c1e68719ad32 (diff) | |
download | linux-41cf3a9156ba8e13e557e7908f9e22563b1f2828.tar.xz |
rxrpc: Fix missing IPV6 #ifdef
Fix rxrpc_encap_err_rcv() to make the call to ipv6_icmp_error conditional
on IPV6 support being enabled.
Fixes: b6c66c4324e7 ("rxrpc: Use the core ICMP/ICMP6 parsers")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
cc: netdev@vger.kernel.org
Diffstat (limited to 'net/rxrpc/local_object.c')
-rw-r--r-- | net/rxrpc/local_object.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/rxrpc/local_object.c b/net/rxrpc/local_object.c index a178f71e5082..a943fdf91e24 100644 --- a/net/rxrpc/local_object.c +++ b/net/rxrpc/local_object.c @@ -33,7 +33,8 @@ static void rxrpc_encap_err_rcv(struct sock *sk, struct sk_buff *skb, int err, { if (ip_hdr(skb)->version == IPVERSION) return ip_icmp_error(sk, skb, err, port, info, payload); - return ipv6_icmp_error(sk, skb, err, port, info, payload); + if (IS_ENABLED(CONFIG_AF_RXRPC_IPV6)) + return ipv6_icmp_error(sk, skb, err, port, info, payload); } /* |