Tomas Winkler dd5de1f165 mei: revamp read and write length checks
1. Return zero on zero length read and writes
2. For a too large write return -EFBIG as defined in man write(2)
EFBIG  An attempt was made to write a file that
        exceeds the implementation-defined maximum
        file size or the process's file size limit,
        or to  write  at  a  position  past  the  maximum
        allowed offset.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-09-26 08:23:01 -07:00
..
2013-09-03 11:37:15 -07:00
2013-04-11 12:39:01 -07:00
2013-06-17 16:43:09 -07:00
2013-01-08 16:40:45 -08:00
2013-08-12 15:46:06 -07:00
2013-03-15 11:10:48 -07:00
2013-07-29 11:50:17 -07:00
2013-03-29 08:32:21 -07:00
2013-04-10 18:56:53 -07:00
2013-06-13 22:31:06 -07:00
2013-06-17 11:54:25 -07:00