From: Miklos Szeredi Date: Tue, 27 May 2014 14:41:16 +0000 (+0200) Subject: vfs: fix vmplice_to_user() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~130^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6dd6f4738837439c520e73995ec93fe1de2ec72;p=pandora-kernel.git vfs: fix vmplice_to_user() Commit 6130f5315ee8 "switch vmsplice_to_user() to copy_page_to_iter()" in v3.15-rc1 broke vmsplice(2). This patch fixes two bugs: - count is not initialized to a proper value, which resulted in no data being copied - if rw_copy_check_uvector() returns negative then the iov might be leaked. Tested OK. Signed-off-by: Miklos Szeredi Signed-off-by: Al Viro --- Reading git-diff-tree failed