summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYang Rong <rong.r.yang@intel.com>2015-07-17 12:46:09 +0800
committerYang Rong <rong.r.yang@intel.com>2015-07-17 16:19:34 +0800
commit6a12b1423266510159ce1b6617b663e265cc3a20 (patch)
tree790231103223737b5fea6cce1f906104294b82ee /src
parent10e301e1d1a0622864fb02729eaa9f4f2b29f6ad (diff)
Runtime: correct event and the wait events compare when check event.
When the event parament is not NULL, the event will point to a new event, so need to check address of the event and the wait events. V2: check the address of the event and the wait events. Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/cl_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cl_event.c b/src/cl_event.c
index 56778ad4..bbc1776d 100644
--- a/src/cl_event.c
+++ b/src/cl_event.c
@@ -221,7 +221,7 @@ cl_int cl_event_check_waitlist(cl_uint num_events_in_wait_list,
err = CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST;
goto exit;
}
- if(event && *event == event_wait_list[i])
+ if(event && event == &event_wait_list[i])
goto error;
if(event_wait_list[i]->ctx != ctx)
goto error;