Obviously a conversion error while switching to __xn_safe*.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>
---

 ksrc/skins/posix/syscall.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ksrc/skins/posix/syscall.c b/ksrc/skins/posix/syscall.c
index 16303b3..0eca3d0 100644
--- a/ksrc/skins/posix/syscall.c
+++ b/ksrc/skins/posix/syscall.c
@@ -1663,7 +1663,7 @@ static int __mq_open(struct pt_regs *regs)
        len = __xn_safe_strncpy_from_user(name,
                                          (const char __user 
*)__xn_reg_arg1(regs),
                                          sizeof(name));
-       if (len <= 0)
+       if (len < 0)
                return -EFAULT;
 
        if (len >= sizeof(name))
@@ -1736,7 +1736,7 @@ static int __mq_unlink(struct pt_regs *regs)
        len = __xn_safe_strncpy_from_user(name,
                                          (const char __user 
*)__xn_reg_arg1(regs),
                                          sizeof(name));
-       if (len <= 0)
+       if (len < 0)
                return -EFAULT;
 
        if (len >= sizeof(name))
@@ -2440,7 +2440,7 @@ static int __shm_open(struct pt_regs *regs)
        len = __xn_safe_strncpy_from_user(name,
                                          (const char __user 
*)__xn_reg_arg1(regs),
                                          sizeof(name));
-       if (len <= 0)
+       if (len < 0)
                return -EFAULT;
 
        if (len >= sizeof(name))
@@ -2487,7 +2487,7 @@ static int __shm_unlink(struct pt_regs *regs)
        len = __xn_safe_strncpy_from_user(name,
                                          (const char __user 
*)__xn_reg_arg1(regs),
                                          sizeof(name));
-       if (len <= 0)
+       if (len < 0)
                return -EFAULT;
 
        if (len >= sizeof(name))

_______________________________________________
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core

Reply via email to