mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
add missing accounting calls to compat_sys_{readv,writev}
Signed-off-by: Gerd Hoffmann <[email protected]> Cc: Jay Lan <[email protected]> Cc: Balbir Singh <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
8c4018884a
commit
ca8a5bd282
1 changed files with 6 additions and 0 deletions
|
|
@ -1187,6 +1187,9 @@ compat_sys_readv(unsigned long fd, const struct compat_iovec __user *vec, unsign
|
|||
ret = compat_do_readv_writev(READ, file, vec, vlen, &file->f_pos);
|
||||
|
||||
out:
|
||||
if (ret > 0)
|
||||
add_rchar(current, ret);
|
||||
inc_syscr(current);
|
||||
fput(file);
|
||||
return ret;
|
||||
}
|
||||
|
|
@ -1210,6 +1213,9 @@ compat_sys_writev(unsigned long fd, const struct compat_iovec __user *vec, unsig
|
|||
ret = compat_do_readv_writev(WRITE, file, vec, vlen, &file->f_pos);
|
||||
|
||||
out:
|
||||
if (ret > 0)
|
||||
add_wchar(current, ret);
|
||||
inc_syscw(current);
|
||||
fput(file);
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue