net: handle errors from device_rename
authorStephen Hemminger <shemminger@vyatta.com>
Thu, 15 May 2008 05:33:38 +0000 (22:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 May 2008 05:33:38 +0000 (22:33 -0700)
commitdcc997738e538919101d8756f19ca23110b25d8d
treed0d190f28c94115c61afae0081248ceee51fd457
parent8f40f672e6bb071812f61bfbd30efc3fc1263ad1
net: handle errors from device_rename

device_rename can fail with -EEXIST or -ENOMEM, so handle any
problems.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c