From: Andrew Morton <akpm@linux-foundation.org>
To: "Américo Wang" <xiyou.wangcong@gmail.com>
Cc: linux-kernel@vger.kernel.org, jdike@addtoit.com, stable@kernel.org
Subject: Re: [Patch] uml: fix one compile error
Date: Thu, 16 Oct 2008 16:15:57 -0700 [thread overview]
Message-ID: <20081016161557.af935f49.akpm@linux-foundation.org> (raw)
In-Reply-To: <20081016152626.GD13374@hack.voiplan.pt>
On Thu, 16 Oct 2008 16:26:26 +0100
Am__rico Wang <xiyou.wangcong@gmail.com> wrote:
>
> This patch fixed the following compile error:
>
> CC arch/um/sys-i386/signal.o
> /home/wangcong/Projects/linux-2.6/arch/um/sys-i386/signal.c: In
> function 'copy_sc_from_user':
> /home/wangcong/Projects/linux-2.6/arch/um/sys-i386/signal.c:182:
> warning: dereferencing 'void *' pointer
> /home/wangcong/Projects/linux-2.6/arch/um/sys-i386/signal.c:182:
> error: request for member '_fxsr_env' in something not a structure or
> union
>
>
> Signed-off-by: WANG Cong <wangcong@zeuux.org>
> Cc: jdike@addtoit.com
>
> ---
> diff --git a/arch/um/sys-i386/signal.c b/arch/um/sys-i386/signal.c
> index fd0c25a..1296473 100644
> --- a/arch/um/sys-i386/signal.c
> +++ b/arch/um/sys-i386/signal.c
> @@ -179,7 +179,8 @@ static int copy_sc_from_user(struct pt_regs *regs,
> if (have_fpx_regs) {
> struct user_fxsr_struct fpx;
>
> - err = copy_from_user(&fpx, &sc.fpstate->_fxsr_env[0],
> + err = copy_from_user(&fpx,
> + &((struct _fpstate __user *)sc.fpstate)->_fxsr_env[0],
> sizeof(struct user_fxsr_struct));
> if (err)
> return 1;
Which kernel versions are affected by this error? 2.6.27?
Thanks.
next prev parent reply other threads:[~2008-10-16 23:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-16 15:26 [Patch] uml: fix one compile error Américo Wang
2008-10-16 23:15 ` Andrew Morton [this message]
2008-10-17 12:20 ` Américo Wang
2008-10-17 12:32 ` Miklos Szeredi
2008-10-17 14:27 ` Américo Wang
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=20081016161557.af935f49.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=jdike@addtoit.com \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@kernel.org \
--cc=xiyou.wangcong@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox