staging/lustre/obdclass: fix class_procfs_init error return value
authorOleg Drokin <green@linuxhacker.ru>
Mon, 6 Jul 2015 16:48:42 +0000 (12:48 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jul 2015 02:47:19 +0000 (19:47 -0700)
commit3c4872f94359ed38a1392c0a9238c48a9aee6f8f
tree4c94320a8011022555dc8a463c38443cee7337d9
parentfaa7a4e3e03889267f66a98d85434b4ff7dd0087
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>
drivers/staging/lustre/lustre/obdclass/linux/linux-module.c