ipip: dereferencing an ERR_PTR in ip_tunnel_init_net()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 19 Aug 2013 07:05:10 +0000 (10:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2013 22:12:15 +0000 (15:12 -0700)
commitea857f28ab5ca82508e70ffbc8cb296705133f01
tree77b8faadb781bdf6253d815b12233473270add10
parent0dde80268ee0a5a1511935bdb9c547191d616aa9
ipip: dereferencing an ERR_PTR in ip_tunnel_init_net()

We need to move the derefernce after the IS_ERR() check.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel.c