From: Jon Smirl <jonsmirl@yahoo.com>
To: James Simmons <jsimmons@infradead.org>
Cc: fbdev <linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: fbmem.c : FBIOGETCMAP
Date: Sun, 5 Jan 2003 12:40:33 -0800 (PST) [thread overview]
Message-ID: <20030105204033.19207.qmail@web14904.mail.yahoo.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0301052034420.24903-100000@phoenix.infradead.org>
It needs a copy_to_user too to work. Probably doesn't
need the copy_from_user.
Is the right fix?
case FBIOGETCMAP:
fb_copy_cmap(&info->cmap, &cmap, 0);
if (copy_to_user((void *) arg, &cmap, sizeof(cmap)))
return -EFAULT;
return 0;
=====
Jon Smirl
jonsmirl@yahoo.com
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
next prev parent reply other threads:[~2003-01-05 20:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-05 20:18 fbmem.c : FBIOGETCMAP Jon Smirl
2003-01-05 20:35 ` James Simmons
2003-01-05 20:40 ` Jon Smirl [this message]
2003-01-05 20:52 ` James Simmons
[not found] <20030107165740.53554.qmail@web14906.mail.yahoo.com>
2003-01-07 22:37 ` James Simmons
2003-01-08 3:49 ` Antonino Daplas
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=20030105204033.19207.qmail@web14904.mail.yahoo.com \
--to=jonsmirl@yahoo.com \
--cc=jsimmons@infradead.org \
--cc=linux-fbdev-devel@lists.sourceforge.net \
/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;
as well as URLs for NNTP newsgroup(s).