Re: [PATCH] kobject: set state_initialized to 0 in kobject_cleanup

2016-11-01 Thread Wu, Songjun
On 11/1/2016 22:56, Greg KH wrote: On Tue, Nov 01, 2016 at 06:41:44PM +0800, Songjun Wu wrote: If state_initialized is not set to 0 when a kobject is released, a device is registered, unregistered, and registered again, the error below will occur. kobject (dec04bb0): tried to init an initiali

Re: [PATCH] kobject: set state_initialized to 0 in kobject_cleanup

2016-11-01 Thread Greg KH
On Tue, Nov 01, 2016 at 06:41:44PM +0800, Songjun Wu wrote: > If state_initialized is not set to 0 when a kobject is > released, a device is registered, unregistered, and > registered again, the error below will occur. > > kobject (dec04bb0): tried to init an initialized object, > something is ser

[PATCH] kobject: set state_initialized to 0 in kobject_cleanup

2016-11-01 Thread Songjun Wu
If state_initialized is not set to 0 when a kobject is released, a device is registered, unregistered, and registered again, the error below will occur. kobject (dec04bb0): tried to init an initialized object, something is seriously wrong. Signed-off-by: Songjun Wu --- lib/kobject.c | 2 ++ 1