]> git.karo-electronics.de Git - karo-tx-linux.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)
commita0f9a4c2ffefec4b647622064d4dcc8a7529f6ad
tree7c40804934e3fdb025ed2d76c47dfff99ca49384
parentd5494acb88aa9dd1325079c9b8855008a52c19b3
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