diff options
author | Oleg Drokin <green@linuxhacker.ru> | 2015-07-06 12:48:42 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-07-13 19:47:19 -0700 |
commit | 3c4872f94359ed38a1392c0a9238c48a9aee6f8f (patch) | |
tree | 4c94320a8011022555dc8a463c38443cee7337d9 /drivers/staging/lustre/lustre/obdclass/linux/linux-module.c | |
parent | staging/lustre/ldlm: In ldlm_pools_fini make sure there was init first. (diff) | |
download | linux-dev-3c4872f94359ed38a1392c0a9238c48a9aee6f8f.tar.xz linux-dev-3c4872f94359ed38a1392c0a9238c48a9aee6f8f.zip |
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>
Diffstat (limited to 'drivers/staging/lustre/lustre/obdclass/linux/linux-module.c')
-rw-r--r-- | drivers/staging/lustre/lustre/obdclass/linux/linux-module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c b/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c index 84f75dce0d4c..b618c0bd7e09 100644 --- a/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c +++ b/drivers/staging/lustre/lustre/obdclass/linux/linux-module.c @@ -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); |