projects
/
profile
/
mobile
/
platform
/
kernel
/
linux-3.10-sc7730.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ip_tunnel: Fix name string concatenate in __ip_tunnel_create()
[profile/mobile/platform/kernel/linux-3.10-sc7730.git]
/
net
/
ipv4
/
ip_tunnel.c
diff --git
a/net/ipv4/ip_tunnel.c
b/net/ipv4/ip_tunnel.c
index
84aa69c
..
c703867
100644
(file)
--- a/
net/ipv4/ip_tunnel.c
+++ b/
net/ipv4/ip_tunnel.c
@@
-292,8
+292,8
@@
static struct net_device *__ip_tunnel_create(struct net *net,
err = -E2BIG;
goto failed;
}
- str
lcpy(name, ops->kind, IFNAMSIZ
);
- str
ncat(name, "%d", 2
);
+ str
cpy(name, ops->kind
);
+ str
cat(name, "%d"
);
}
ASSERT_RTNL();