Whamcloud - gitweb
LU-3063 osc: Check return code for lu_kmem_init
[fs/lustre-release.git] / lustre / osc / osc_request.c
index 5b0ecfc..0497771 100644 (file)
@@ -3688,6 +3688,8 @@ int __init osc_init(void)
         CDEBUG(D_INFO, "Lustre OSC module (%p).\n", &osc_caches);
 
         rc = lu_kmem_init(osc_caches);
+       if (rc)
+               RETURN(rc);
 
         lprocfs_osc_init_vars(&lvars);