Davis, Arlin R
2011-11-02 21:34:41 UTC
Add additional NULL ptr check for arg3 ep_param
Signed-off-by: Arlin Davis <***@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;
Signed-off-by: Arlin Davis <***@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;