]> git.baikalelectronics.ru Git - kernel.git/commit
splice: fix error return code
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 14 May 2009 07:49:44 +0000 (09:49 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 14 May 2009 07:49:44 +0000 (09:49 +0200)
commit679d8e187f7d8396455c5cc4531640afdc36f788
tree09cfb70eb20081d7fc5af21039e3fda7f0b95f84
parenta329e5571182dfb1203de70b578407a685402b6a
splice: fix error return code

fs/splice.c: In function 'default_file_splice_read':
fs/splice.c:566: warning: 'error' may be used uninitialized in this function

which is sort-of true.  The code will in fact return -ENOMEM instead of the
kernel_readv() return value.

Cc: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/splice.c