Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2733334
)
Branch HEAD
author
scjody
<scjody>
Wed, 27 May 2009 22:47:43 +0000
(22:47 +0000)
committer
scjody
<scjody>
Wed, 27 May 2009 22:47:43 +0000
(22:47 +0000)
b=19479
i=jinshan.xiong
i=tom.wang
Fix oops: make sure next is not NULL before using it.
lustre/obdecho/echo_client.c
patch
|
blob
|
history
diff --git
a/lustre/obdecho/echo_client.c
b/lustre/obdecho/echo_client.c
index
f5b47d1
..
ec96354
100644
(file)
--- 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;
/*