kernel_optimize_test/drivers/video/aty
Alan Curry db77ec270d [PATCH] framebuffer: cmap-setting return values
A set of 3 small bugfixes, all of which are related to bogus return values
of fb colormap-setting functions.

First, fb_alloc_cmap returns -1 if memory allocation fails. This is a hard
condition to reproduce since you'd have to be really low on memory, but from
studying the contexts in which it is called, I think this function should be
returning a negative errno, and the -1 will be seen as an EPERM. Switching it
to -ENOMEM makes sense.

Second, the store_cmap function which is called for writes to
/sys/class/graphics/fb0/color_map returns 0 for success, but it should be
returning the count of bytes written since its return value ends up in
userspace as the result of the write() syscall.

Third, radeonfb returns 1 instead of a negative errno when FBIOPUTCMAP is
called with an oversized colormap.  This is seen in userspace as a return
value of 1 from the ioctl() syscall with errno left unchanged.  A more
useful return value would be -EINVAL.

Signed-off-by: Alan Curry <pacman@TheWorld.com>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-27 08:44:56 -08:00
..
ati_ids.h [PATCH] fbdev: ATI RN50 pci id 2005-11-07 07:53:53 -08:00
aty128fb.c [PATCH] aty128fb: Fix array overrun 2006-03-11 09:19:36 -08:00
atyfb_base.c [PATCH] fbdev: Sanitize ->fb_mmap prototype 2006-01-14 18:27:15 -08:00
atyfb.h [PATCH] atyfb: Set ECP divider 2006-01-10 08:01:48 -08:00
mach64_accel.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach64_ct.c [PATCH] atyfb: Set ECP divider 2006-01-10 08:01:48 -08:00
mach64_cursor.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach64_gx.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile [PATCH] fbdev: atyfb: Remove BIOS-less booting 2006-01-10 08:01:46 -08:00
radeon_accel.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
radeon_base.c [PATCH] framebuffer: cmap-setting return values 2006-03-27 08:44:56 -08:00
radeon_i2c.c [PATCH] I2C: Kill i2c_algorithm.id (6/7) 2005-09-05 09:14:32 -07:00
radeon_monitor.c [PATCH] radeonfb: Fix static array overrun 2006-03-11 09:19:36 -08:00
radeon_pm.c [PATCH] s/;;/;/g 2006-03-24 07:33:24 -08:00
radeonfb.h [PATCH] radeonfb: prevent spurious recompilations 2005-11-07 07:53:49 -08:00