From c91a3f5f73b00dc38926fb2f0cd93a9f75e836dc Mon Sep 17 00:00:00 2001 From: scjody Date: Wed, 27 May 2009 22:47:43 +0000 Subject: [PATCH] Branch HEAD b=19479 i=jinshan.xiong i=tom.wang Fix oops: make sure next is not NULL before using it. --- lustre/obdecho/echo_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/obdecho/echo_client.c b/lustre/obdecho/echo_client.c index f5b47d1..ec96354 100644 --- a/lustre/obdecho/echo_client.c +++ b/lustre/obdecho/echo_client.c @@ -694,7 +694,7 @@ static struct lu_device *echo_device_alloc(const struct lu_env *env, tgt = class_name2obd(lustre_cfg_string(cfg, 1)); LASSERT(tgt != NULL); next = tgt->obd_lu_dev; - if (!lu_device_is_cl(next)) + if (next != NULL && !lu_device_is_cl(next)) next = NULL; /* -- 1.8.3.1