aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/net_kern.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/drivers/net_kern.c')
-rw-r--r--arch/um/drivers/net_kern.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/arch/um/drivers/net_kern.c b/arch/um/drivers/net_kern.c
index baac4ad5e68e..72773dd54425 100644
--- a/arch/um/drivers/net_kern.c
+++ b/arch/um/drivers/net_kern.c
@@ -316,12 +316,14 @@ static void setup_etheraddr(char *str, unsigned char *addr, char *name)
316 } 316 }
317 if (!is_local_ether_addr(addr)) { 317 if (!is_local_ether_addr(addr)) {
318 printk(KERN_WARNING 318 printk(KERN_WARNING
319 "Warning: attempt to assign a globally valid ethernet address to a " 319 "Warning: attempt to assign a globally valid ethernet "
320 "device\n"); 320 "address to a device\n");
321 printk(KERN_WARNING "You should better enable the 2nd rightmost bit " 321 printk(KERN_WARNING "You should better enable the 2nd "
322 "in the first byte of the MAC, i.e. " 322 "rightmost bit in the first byte of the MAC,\n");
323 "%02x:%02x:%02x:%02x:%02x:%02x\n", 323 printk(KERN_WARNING "i.e. %02x:%02x:%02x:%02x:%02x:%02x\n",
324 addr[0] | 0x02, addr[1], addr[2], addr[3], addr[4], addr[5]); 324 addr[0] | 0x02, addr[1], addr[2], addr[3], addr[4],
325 addr[5]);
326 goto random;
325 } 327 }
326 return; 328 return;
327 329
@@ -478,6 +480,7 @@ out_undo_user_init:
478 (*transport->user->remove)(&lp->user); 480 (*transport->user->remove)(&lp->user);
479out_unregister: 481out_unregister:
480 platform_device_unregister(&device->pdev); 482 platform_device_unregister(&device->pdev);
483 return; /* platform_device_unregister frees dev and device */
481out_free_netdev: 484out_free_netdev:
482 free_netdev(dev); 485 free_netdev(dev);
483out_free_device: 486out_free_device: