From: scjody Date: Wed, 27 May 2009 22:47:43 +0000 (+0000) Subject: Branch HEAD X-Git-Tag: v1_9_0_200~67 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=c91a3f5f73b00dc38926fb2f0cd93a9f75e836dc;p=fs%2Flustre-release.git Branch HEAD b=19479 i=jinshan.xiong i=tom.wang Fix oops: make sure next is not NULL before using it. --- 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; /*