From: Philippe Gerum <rpm@xenomai.org>
To: Sebastian Smolorz <Sebastian.Smolorz@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] Patch for RTDM recvmsg bug
Date: Sat, 12 Nov 2005 23:57:05 +0100 [thread overview]
Message-ID: <43767341.10309@domain.hid> (raw)
In-Reply-To: <Pine.GSO.4.58.0511101656220.6569@domain.hid>
Sebastian Smolorz wrote:
> Hi,
>
> here's a patch for a bug in skins/rtdm/syscall.c. The msghdr was not
> copied to user space upon completion of a recvmsg() call if the return
> value was not equal to zero. But recvmsg shall return the length of the
> message in bytes (according to IEEE Std 1003.1).
>
Applied, thanks.
> I have the permission from Jan to patch his code. ;-)
>
>
> Sebastian
>
>
> ------------------------------------------------------------------------
>
> --- xenomai/skins/rtdm/syscall.c 2005-11-10 16:45:24.000000000 +0100
> +++ syscall.c 2005-11-10 16:27:08.000000000 +0100
> @@ -99,7 +99,7 @@ static int sys_rtdm_recvmsg(struct task_
>
> ret = _rtdm_recvmsg(curr, __xn_reg_arg1(regs), &krnl_msg,
> __xn_reg_arg3(regs));
> - if (!ret)
> + if (ret >= 0)
> __xn_copy_to_user(curr, (void __user *)__xn_reg_arg2(regs), &krnl_msg,
> sizeof(krnl_msg));
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Xenomai-core mailing list
> Xenomai-core@domain.hid
> https://mail.gna.org/listinfo/xenomai-core
--
Philippe.
prev parent reply other threads:[~2005-11-12 22:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-10 16:07 [Xenomai-core] Patch for RTDM recvmsg bug Sebastian Smolorz
2005-11-12 22:57 ` Philippe Gerum [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43767341.10309@domain.hid \
--to=rpm@xenomai.org \
--cc=Sebastian.Smolorz@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.