ipip: potential race in ip_tunnel_init_net()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 23 Aug 2013 08:15:37 +0000 (11:15 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Aug 2013 22:39:59 +0000 (18:39 -0400)
commitb4de77ade3fc56e41b978b68d78a351dab28b74e
tree92e18e67c92a67d7ae83160a80c66b1767547840
parentb8e2fde466f7902fed4ad10bb60c1377b27cbfb7
ipip: potential race in ip_tunnel_init_net()

Eric Dumazet says that my previous fix for an ERR_PTR dereference
(ea857f28ab 'ipip: dereferencing an ERR_PTR in ip_tunnel_init_net()')
could be racy and suggests the following fix instead.

Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel.c