Re: [PATCH] fbdev: Fix return error of fb_write

Richard Purdie
2006-04-17T14:45:37Z

On Sat, 2006-04-15 at 13:38 +0800, Antonino A. Daplas wrote:
> 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>

I can confirm this fixes the problem I reported, thanks!

Richard