[Xenomai-core] [PATCH 1/2] native: Do not acquire non-existent MPS fastlock

2011-06-30 Thread Jan Kiszka
Fix a build warning at this chance as well. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- Applies on top of xenomai-gch.git gch/u_mode ksrc/skins/native/task.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/ksrc/skins/native/task.c

[Xenomai-core] [PATCH 2/2] native: Fix error cleanup of rt_task_create

2011-06-30 Thread Jan Kiszka
When creating of a shadow task fails, rt_task_create has to free the task object consistently, not only on registry errors. Then we need to delete the core thread when fastlock allocation failed. Moreover, fix a double free of the fastlock object which is now released via the delete hook. Finally,

Re: [Xenomai-core] [PATCH 2/2] native: Fix error cleanup of rt_task_create

2011-06-30 Thread Gilles Chanteperdrix
On 06/30/2011 11:36 AM, Jan Kiszka wrote: When creating of a shadow task fails, rt_task_create has to free the task object consistently, not only on registry errors. Then we need to delete the core thread when fastlock allocation failed. Moreover, fix a double free of the fastlock object which

Re: [Xenomai-core] [PATCH 2/2] native: Fix error cleanup of rt_task_create

2011-06-30 Thread Jan Kiszka
On 2011-06-30 13:09, Gilles Chanteperdrix wrote: On 06/30/2011 11:36 AM, Jan Kiszka wrote: When creating of a shadow task fails, rt_task_create has to free the task object consistently, not only on registry errors. Then we need to delete the core thread when fastlock allocation failed.