Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a55e0f44 authored by Keith Mannthey's avatar Keith Mannthey Committed by Greg Kroah-Hartman
Browse files

staging/lustre/osc: Check return code for lu_kmem_init

lu_kmem_init can fail and returns has a return code.
Check for this return code in lu_kmem_init.

This issue was found during 2gb VM Racer testing

Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3063
Lustre-change: http://review.whamcloud.com/6514


Signed-off-by: default avatarKeith Mannthey <keith.mannthey@intel.com>
Reviewed-by: default avatarMike Pershin <mike.pershin@intel.com>
Reviewed-by: default avatarNathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-by: default avatarBob Glossman <bob.glossman@intel.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarPeng Tao <tao.peng@emc.com>
Signed-off-by: default avatarAndreas Dilger <andreas.dilger@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c6c9f60d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3681,6 +3681,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);