Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-10264 mdc: fix possible NULL pointer dereference
[fs/lustre-release.git]
/
lustre
/
mdc
/
mdc_dev.c
diff --git
a/lustre/mdc/mdc_dev.c
b/lustre/mdc/mdc_dev.c
index
0ebc4ef
..
3672ed1
100644
(file)
--- a/
lustre/mdc/mdc_dev.c
+++ b/
lustre/mdc/mdc_dev.c
@@
-702,7
+702,7
@@
int mdc_enqueue_send(const struct lu_env *env, struct obd_export *exp,
RETURN(ELDLM_OK);
matched = ldlm_handle2lock(&lockh);
- if (ldlm_is_kms_ignore(matched))
+ if (
!matched ||
ldlm_is_kms_ignore(matched))
goto no_match;
if (mdc_set_dom_lock_data(env, matched, einfo->ei_cbdata)) {