mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-26 19:44:21 +08:00
dump_emit(): use __kernel_write(), not vfs_write()
the caller has already done file_start_write()... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
db51242d89
commit
52da40ae67
@ -695,7 +695,7 @@ int dump_emit(struct coredump_params *cprm, const void *addr, int nr)
|
||||
while (nr) {
|
||||
if (dump_interrupted())
|
||||
return 0;
|
||||
n = vfs_write(file, addr, nr, &pos);
|
||||
n = __kernel_write(file, addr, nr, &pos);
|
||||
if (n <= 0)
|
||||
return 0;
|
||||
file->f_pos = pos;
|
||||
|
Loading…
Reference in New Issue
Block a user