• Maneesh Soni's avatar
    [PATCH] kobject_set_name - error handling · ab7f7331
    Maneesh Soni authored
    1) kobject_set_name-cleanup-01.patch
    
    This patch corrects the following by checking the reutrn code from
    kobject_set_name().
    
    bus_add_driver()
    bus_register()
    sys_dev_register()
    
    
    
    o The following patch cleansup the kobject_set_name() users. Basically checking
      return code from kobject_set_name(). There can be error returns like -ENOMEM
      or -EFAULT from kobject_set_name() if the name length exceeds KOBJ_NAME_LEN.
    ab7f7331
sys.c 9.31 KB