]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] fbdev: Fix return error of fb_write
authorAntonino A. Daplas <adaplas@gmail.com>
Wed, 19 Apr 2006 17:01:21 +0000 (17:01 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 24 Apr 2006 16:56:05 +0000 (09:56 -0700)
commitfd9b012814bebde59160283a13487841ccdfcce5
tree3e54c702f11a275599cece2f73c372b565acea16
parent95fb678bf90572414b1c2f239c6a44226049ba8a
[PATCH] fbdev: Fix return error of fb_write

Fix return code of fb_write():

If at least 1 byte was transferred to the device, return number of bytes,
otherwise:

    - return -EFBIG - if file offset is past the maximum allowable offset or
      size is greater than framebuffer length
    - return -ENOSPC - if size is greater than framebuffer length - offset

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