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:
37d99a5
)
* Fixed incorrect handling of 'eq == NULL' in ptl_eq2handle()
author
eeb
<eeb>
Mon, 15 Nov 2004 11:54:34 +0000
(11:54 +0000)
committer
eeb
<eeb>
Mon, 15 Nov 2004 11:54:34 +0000
(11:54 +0000)
lustre/portals/include/portals/lib-p30.h
patch
|
blob
|
history
diff --git
a/lustre/portals/include/portals/lib-p30.h
b/lustre/portals/include/portals/lib-p30.h
index
4daf219
..
b710569
100644
(file)
--- a/
lustre/portals/include/portals/lib-p30.h
+++ b/
lustre/portals/include/portals/lib-p30.h
@@
-279,6
+279,11
@@
extern void lib_invalidate_handle (lib_nal_t *nal, lib_handle_t *lh);
static inline void
ptl_eq2handle (ptl_handle_eq_t *handle, lib_nal_t *nal, lib_eq_t *eq)
{
+ if (eq == NULL) {
+ *handle = PTL_EQ_NONE;
+ return;
+ }
+
handle->nal_idx = nal->libnal_ni.ni_api->nal_handle.nal_idx;
handle->cookie = eq->eq_lh.lh_cookie;
}