staging/lustre/obdclass: fix class_procfs_init error return value
Dan Carpenter noticed that procfs conversion patches introduced a bug where should kobject_create_and_add, an error is not returned from class_procfs_init. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Oleg Drokin <green@linuxhacker.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
faa7a4e3e0
commit
3c4872f943
1 changed files with 1 additions and 1 deletions
|
@ -423,7 +423,7 @@ static struct attribute_group lustre_attr_group = {
|
|||
|
||||
int class_procfs_init(void)
|
||||
{
|
||||
int rc = 0;
|
||||
int rc = -ENOMEM;
|
||||
struct dentry *file;
|
||||
|
||||
lustre_kobj = kobject_create_and_add("lustre", fs_kobj);
|
||||
|
|
Loading…
Add table
Reference in a new issue