runtime: Fix a dangling pointer issue
authorRuiling Song <ruiling.song@intel.com>
Thu, 31 Oct 2013 03:01:21 +0000 (11:01 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Thu, 31 Oct 2013 04:37:37 +0000 (12:37 +0800)
commitab01a1569d4cf1155c3910e44ed32e0f70aafd9f
tree89e8476dba78d07f78b253bec55aaf71ccc70d09
parent7d410f7bdf96028da4a3ac075722b0f44ee81849
runtime: Fix a dangling pointer issue

ctx->events points to the head of 'event list' under the ctx.
When deleting an event from the list, we should also update
the head pointer besides updating its neighbour's next & prev,

Signed-off-by: Ruiling Song <ruiling.song@intel.com>
Reviewedy-by: "Xing, Homer" <homer.xing@intel.com>
src/cl_event.c