diff options
author | Gao feng <gaofeng@cn.fujitsu.com> | 2012-09-13 20:58:27 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-09-19 15:37:01 -0400 |
commit | 828de4f6bf6e785f7b5497f8f7cfd4d4fbcfdb7e (patch) | |
tree | a6a9eba68dd775aaf900b4b30193cb07595b0694 /net/dns_resolver | |
parent | 3fd91fb35847a8b3287f00970efc069de16df8b4 (diff) |
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/dns_resolver')
0 files changed, 0 insertions, 0 deletions