• Greg Kroah-Hartman's avatar
    [PATCH] fix reference count bug with class devices · 59ccfc46
    Greg Kroah-Hartman authored
    When a kobject is associated with a kset, the kset MUST be set before
    the kobject is initialized (by either a call to kobject_register() or
    kobject_init()).  This patch fixes the class code which improperly set
    the kset after the kobject was initialized, which would cause improper
    reference counts on the kset.
    
    Thanks to Mike Anderson for locating the source of this bug.
    59ccfc46
class.c 10.9 KB