diff options
| author | Miklos Szeredi <[email protected]> | 2014-05-27 14:41:16 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2014-05-28 05:54:52 +0000 |
| commit | b6dd6f4738837439c520e73995ec93fe1de2ec72 (patch) | |
| tree | 625ca1eb1d708ea7ceccba35362ee6ffa1daf9da /tools/perf/scripts/python/sctop.py | |
| parent | Linux 3.15-rc7 (diff) | |
| download | kernel-b6dd6f4738837439c520e73995ec93fe1de2ec72.tar.gz kernel-b6dd6f4738837439c520e73995ec93fe1de2ec72.zip | |
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 <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions
