]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] fbdev: Fix return code of fb_read and fb_write
authorAntonino A. Daplas <adaplas@gmail.com>
Tue, 10 Jan 2006 04:53:37 +0000 (20:53 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 10 Jan 2006 16:01:50 +0000 (08:01 -0800)
commitb3c318c5897360e7006ac8b934eaeaaaf4973195
treea7349d0d7d774abca668ce52a58b845958fa79c8
parentb8b9d4e311b40196f78f472e5196ee5b5a880ced
[PATCH] fbdev: Fix return code of fb_read and fb_write

Make fb_read() and fb_write() return 0 (EOF) instead of -ENOSPC if reading at
or past the end of the framebuffer.  This fixes user space apps hanging if
info->fix.smem_len == 0.

Whitespace changes.

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/fbmem.c