• Stephen Hemminger's avatar
    [NET]: Sysfs netdev cleanup and bugfix. · 8448d20f
    Stephen Hemminger authored
    A couple of bugs in netdev_unregister_sysfs; still working on the harder
    refcount issues.
    - if driver sets get_stats after register then unregister 
      will attempt to delete kobject that has not be initialized.
    - unregister should call kobject_unregister not kobject_del.
    
    cleanup's:
    - use strlcpy instead of snprintf
    - don't need to memset the stats kobject
    8448d20f
net-sysfs.c 8.53 KB