]> git.baikalelectronics.ru Git - kernel.git/commit
dccp: call inet_add_protocol after register_pernet_subsys in dccp_v6_init
authorXin Long <lucien.xin@gmail.com>
Tue, 20 Jun 2017 07:44:44 +0000 (15:44 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jun 2017 19:31:43 +0000 (15:31 -0400)
commitc802b45dd4aac017fbb208996ae758e51f02735e
tree7c40804934e3fdb025ed2d76c47dfff99ca49384
parent557550b197cf0d4d1ee605c7fc4f098fea9889f7
dccp: call inet_add_protocol after register_pernet_subsys in dccp_v6_init

Patch "call inet_add_protocol after register_pernet_subsys in dccp_v4_init"
fixed a null pointer dereference issue for dccp_ipv4 module.

The same fix is needed for dccp_ipv6 module.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/ipv6.c