[ofw] [PATCH] DAPL v2.0: common: dat_ep_modify seg faults with null ep_param ptr
Davis, Arlin R
arlin.r.davis at intel.com
Wed Nov 2 14:34:41 PDT 2011
Add additional NULL ptr check for arg3 ep_param
Signed-off-by: Arlin Davis <arlin.r.davis at intel.com>
---
dapl/common/dapl_ep_modify.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dapl/common/dapl_ep_modify.c b/dapl/common/dapl_ep_modify.c
index 9f0095f..0545870 100644
--- a/dapl/common/dapl_ep_modify.c
+++ b/dapl/common/dapl_ep_modify.c
@@ -385,6 +385,12 @@ dapli_ep_modify_validate_parameters(IN DAT_EP_HANDLE ep_handle,
goto bail;
}
+ if (ep_param == NULL) {
+ dat_status =
+ DAT_ERROR(DAT_INVALID_PARAMETER, DAT_INVALID_ARG3);
+ goto bail;
+ }
+
ep = (DAPL_EP *) ep_handle;
ia = ep->header.owner_ia;
--
1.7.3
More information about the ofw
mailing list