Skip to content

Commit 41cf3a9

Browse files
committed
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: b6c66c4 ("rxrpc: Use the core ICMP/ICMP6 parsers") Reported-by: kernel test robot <[email protected]> Signed-off-by: David Howells <[email protected]> cc: Marc Dionne <[email protected]> cc: [email protected] cc: [email protected]
1 parent b548b17 commit 41cf3a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

net/rxrpc/local_object.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ static void rxrpc_encap_err_rcv(struct sock *sk, struct sk_buff *skb, int err,
3333
{
3434
if (ip_hdr(skb)->version == IPVERSION)
3535
return ip_icmp_error(sk, skb, err, port, info, payload);
36-
return ipv6_icmp_error(sk, skb, err, port, info, payload);
36+
if (IS_ENABLED(CONFIG_AF_RXRPC_IPV6))
37+
return ipv6_icmp_error(sk, skb, err, port, info, payload);
3738
}
3839

3940
/*

0 commit comments

Comments
 (0)