diff options
author | 2012-09-13 20:58:27 +0000 | |
---|---|---|
committer | 2012-09-19 15:37:01 -0400 | |
commit | 828de4f6bf6e785f7b5497f8f7cfd4d4fbcfdb7e (patch) | |
tree | a6a9eba68dd775aaf900b4b30193cb07595b0694 /net/core/ethtool.c | |
parent | ipv6: recursive check rt->dst.from when call rt6_check_expired (diff) | |
download | wireguard-linux-828de4f6bf6e785f7b5497f8f7cfd4d4fbcfdb7e.tar.xz wireguard-linux-828de4f6bf6e785f7b5497f8f7cfd4d4fbcfdb7e.zip |
net: dev: fix incorrect getting net device's name
When moving a nic from net namespace A to net namespace B,
in dev_change_net_namesapce,we call __dev_get_by_name to
decide if the netns B has the device has the same name.
if the netns B already has the same named device,we call
dev_get_valid_name to try to get a valid name for this nic in
the netns B,but net_device->nd_net still point to netns A now.
this patch fix it.
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/ethtool.c')
0 files changed, 0 insertions, 0 deletions