• Jeff Dike's avatar
    uml: network and pcap cleanup · 7d98230a
    Jeff Dike authored
    Some network device cleanup.
    
    When setup_etheraddr found a globally valid MAC being assigned to an
    interface, it went ahead and used it rather than assigning a random MAC like
    the other cases do.  This isn't really an error like the others, but it seems
    consistent to make it behave the same.
    
    We were getting some duplicate kfree() in the error case in eth_configure
    because platform_device_unregister frees buffers that the error cases
    following tried to free again.
    
    The pcap initialization routine wasn't doing the proper printk of its
    information, causing a printk of the first part of that line to be
    unterminated by a newline.
    
    The pcap code had a bunch of style violations, which are now fixed.
    
    pcap_setup wasn't returning false when it detected an unrecognized
    option.
    
    The printks in pcap_user all got UM_KERN_BLAH prepended to their
    format strings.
    
    pcap_remove now checks for a non-NULL pcap structure before it calls
    pcap_close.
    Signed-off-by: default avatarJeff Dike <jdike@linux.intel.com>
    Acked-by: default avatarPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    7d98230a
net_kern.c 19.5 KB