From 19242e5557c71346597f2ebb4509c9c25e7a0113 Mon Sep 17 00:00:00 2001 From: Keith Mannthey Date: Fri, 31 May 2013 20:06:30 -0700 Subject: [PATCH] LU-3063 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 Signed-off-by: Keith Mannthey Change-Id: I4ca9d5bae212591d5109b2053940161f9e28baeb Reviewed-on: http://review.whamcloud.com/6514 Tested-by: Hudson Reviewed-by: Mike Pershin Tested-by: Maloo Reviewed-by: Nathaniel Clark Reviewed-by: Bob Glossman Reviewed-by: Oleg Drokin --- lustre/osc/osc_request.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustre/osc/osc_request.c b/lustre/osc/osc_request.c index 5b0ecfc..0497771 100644 --- a/lustre/osc/osc_request.c +++ b/lustre/osc/osc_request.c @@ -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); -- 1.8.3.1