]> git.baikalelectronics.ru Git - kernel.git/commit
staging: lustre: osc: tidy up osc_init()
authorNeilBrown <neilb@suse.com>
Mon, 21 May 2018 04:35:12 +0000 (14:35 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 16:29:09 +0000 (18:29 +0200)
commit7dc39b16ebc741c9d730b0552b14b76641da7b81
tree2a460b72f1efa0499c1a57704969ca2dd194317c
parent5bd52ae8bf64f8b3d9fed5e3652268c02b36a3bf
staging: lustre: osc: tidy up osc_init()

A module_init() function that registers the services
of the module should do that last, after all other
initialization has succeeded.
This patch moves the class_register_type() call to the
end and ensures everything else that might have been
set up, is cleaned up on error.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/osc/osc_request.c