[Cbe-oss-dev] [PATCH 10/17]MARS/modules/task: Fix partial context save bug

Yuji Mano yuji.mano at am.sony.com
Wed Nov 26 14:40:17 EST 2008


This fixes a bug in mars_task_create where an incorrect pointer
is used when preparing the context save unit list.

Signed-off-by: Yuji Mano <yuji.mano at am.sony.com>

---
 modules/task/src/host/lib/task.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/modules/task/src/host/lib/task.c
+++ b/modules/task/src/host/lib/task.c
@@ -144,7 +144,7 @@ int mars_task_create(struct mars_context
 			goto error_context_save_unit_addr_align;
 		}
 
-		context_save_area_size += context_save_unit->size;
+		context_save_area_size += p->size;
 		context_save_unit_count++;
 		p++;
 






More information about the cbe-oss-dev mailing list