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