From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Smirl Subject: Re: fbmem.c : FBIOGETCMAP Date: Sun, 5 Jan 2003 12:40:33 -0800 (PST) Sender: linux-fbdev-devel-admin@lists.sourceforge.net Message-ID: <20030105204033.19207.qmail@web14904.mail.yahoo.com> References: Mime-Version: 1.0 Return-path: Received: from web14904.mail.yahoo.com ([216.136.225.56]) by sc8-sf-list1.sourceforge.net with smtp (Exim 3.31-VA-mm2 #1 (Debian)) id 18VHZT-0007Z0-00 for ; Sun, 05 Jan 2003 12:40:35 -0800 In-Reply-To: Errors-To: linux-fbdev-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: James Simmons Cc: fbdev 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