]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: fix exthdrs offload registration in out_rt path
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 2 Sep 2015 22:29:07 +0000 (00:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Sep 2015 22:31:00 +0000 (15:31 -0700)
commit9894c033899db05a3a6e1717c5cf12a5dbc94542
tree25d576367730e92f13ecbe39167613faafff6ea3
parent10af0830eb2a28c54f2d661a0b9aaf992087d2f1
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: e810a208a14b ("ipv6: Switch to using new offload infrastructure.")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/exthdrs_offload.c