|
From: James S. <jsi...@in...> - 2003-01-07 22:38:42
|
> I can run the fb color map tests now if you had a > chance to fix the code. > > I am just running fbtest from the sourceforge fb cvs. I'm CC the fbdev list because the fb color map code is a mess. I like to know what the best approach would be to clean it up. FIrst the main bug. In fb_copy_cmap we should be testing to see if copy_from[to]_user fails. We don't. The other issue is for fb_copy_cmap We handle memcpy, copy_from_user, and copy)to_user. Now in fb_set_cmap we use get_user also without any checks. So we could have fb_copy_cmap keep handling all these issues and remove get_user from fb_set_cmap. We would just pass in fbcmap we got from fb_copy_cmap and pass into fb_set_cmap. The other approach is to remove copy_from_user in fb_copy_cmap and place it int fb_set_cmap. What do you think is the best approach to this? |