[Xenomai] [PATCH 1/1] posix skin: fix address passed to pse51_mutex_check_init in syscall

Thierry Bultel tbultel at free.fr
Thu Apr 28 16:39:50 CEST 2016


The address passed to pse51_mutex_check_init was the one of userland,
not the kernel one.

Signed-off-by: Thierry Bultel <tbultel at free.fr>
---
 ksrc/skins/posix/syscall.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ksrc/skins/posix/syscall.c b/ksrc/skins/posix/syscall.c
index 87b95fa..31e2705 100644
--- a/ksrc/skins/posix/syscall.c
+++ b/ksrc/skins/posix/syscall.c
@@ -1202,7 +1202,7 @@ static int __pthread_mutex_check_init(struct pt_regs *regs)
 	} else
 		attr = NULL;
 
-	return pse51_mutex_check_init(&umx->shadow_mutex, attr);
+	return pse51_mutex_check_init(&mx.shadow_mutex, attr);
 }
 
 static int __pthread_mutex_init(struct pt_regs *regs)
-- 
1.9.1




More information about the Xenomai mailing list