4d5bedcebc
In the event that one bdev module failed, we'd leak a bunch of stuff from any that init'd correctly beforehand. Also added a guard around the calling of modile init_done routines so that it's not done if module init didn't work. Change-Id: I4e6170e1eee67b131252ed30d0d20124d2c5ff35 Signed-off-by: Paul Luse <paul.e.luse@intel.com> Reviewed-on: https://review.gerrithub.io/419446 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>