[RTNETLINK]: Fix netdevice name corruption
authorPatrick McHardy <kaber@trash.net>
Thu, 14 Sep 2006 03:35:36 +0000 (20:35 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Sep 2006 22:18:50 +0000 (15:18 -0700)
commit78e5b8916e7db119850f57ce8548fbb9767078fc
tree1aa44a67101b354279d4edc98afc6c4ae1389a88
parentd1d9facfd1b326e0df587c96f0ee55de2ae9f946
[RTNETLINK]: Fix netdevice name corruption

When changing a device by ifindex without including a IFLA_IFNAME
attribute, the ifname variable contains random garbage and is used
to change the device name.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c