diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/ip_tunnel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/ip_tunnel.c b/net/ipv4/ip_tunnel.c index c0e3cb72ad70..bd28f386bd02 100644 --- a/net/ipv4/ip_tunnel.c +++ b/net/ipv4/ip_tunnel.c | |||
@@ -40,6 +40,7 @@ | |||
40 | #include <linux/if_ether.h> | 40 | #include <linux/if_ether.h> |
41 | #include <linux/if_vlan.h> | 41 | #include <linux/if_vlan.h> |
42 | #include <linux/rculist.h> | 42 | #include <linux/rculist.h> |
43 | #include <linux/err.h> | ||
43 | 44 | ||
44 | #include <net/sock.h> | 45 | #include <net/sock.h> |
45 | #include <net/ip.h> | 46 | #include <net/ip.h> |
@@ -930,7 +931,7 @@ int ip_tunnel_init_net(struct net *net, int ip_tnl_net_id, | |||
930 | } | 931 | } |
931 | rtnl_unlock(); | 932 | rtnl_unlock(); |
932 | 933 | ||
933 | return PTR_RET(itn->fb_tunnel_dev); | 934 | return PTR_ERR_OR_ZERO(itn->fb_tunnel_dev); |
934 | } | 935 | } |
935 | EXPORT_SYMBOL_GPL(ip_tunnel_init_net); | 936 | EXPORT_SYMBOL_GPL(ip_tunnel_init_net); |
936 | 937 | ||