Re: [PATCH 2/3] lib/kobject: Panic when kobj or ktype is not properly assigned

2013-03-19 Thread Greg KH
On Tue, Mar 19, 2013 at 02:47:00PM +0800, Dong Hao wrote: > From: Dong Hao > > kobj and ktype are two important attributes which will be used after > kobject_init(), > and (!kobj)|(!ktype) may cause FS corruption which could not be recovered. > Panic instead of dump_stack() when neither kobj nor

Re: [PATCH 2/3] lib/kobject: Panic when kobj or ktype is not properly assigned

2013-03-19 Thread Xiao Guangrong
On 03/19/2013 02:47 PM, Dong Hao wrote: > From: Dong Hao > > kobj and ktype are two important attributes which will be used after > kobject_init(), > and (!kobj)|(!ktype) may cause FS corruption which could not be recovered. delete this line, i am not very convinced about corruption ... > Pa