提交 e41b0bed 编写于 作者: D Daniel Borkmann 提交者: David S. Miller

ipv6: fix exthdrs offload registration in out_rt path

We previously register IPPROTO_ROUTING offload under inet6_add_offload(),
but in error path, we try to unregister it with inet_del_offload(). This
doesn't seem correct, it should actually be inet6_del_offload(), also
ipv6_exthdrs_offload_exit() from that commit seems rather incorrect (it
also uses rthdr_offload twice), but it got removed entirely later on.

Fixes: 3336288a ("ipv6: Switch to using new offload infrastructure.")
Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 210c34dc
......@@ -36,6 +36,6 @@ int __init ipv6_exthdrs_offload_init(void)
return ret;
out_rt:
inet_del_offload(&rthdr_offload, IPPROTO_ROUTING);
inet6_del_offload(&rthdr_offload, IPPROTO_ROUTING);
goto out;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册