Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52da40ae authored by Al Viro's avatar Al Viro
Browse files

dump_emit(): use __kernel_write(), not vfs_write()



the caller has already done file_start_write()...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent db51242d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -695,7 +695,7 @@ int dump_emit(struct coredump_params *cprm, const void *addr, int nr)
	while (nr) {
	while (nr) {
		if (dump_interrupted())
		if (dump_interrupted())
			return 0;
			return 0;
		n = vfs_write(file, addr, nr, &pos);
		n = __kernel_write(file, addr, nr, &pos);
		if (n <= 0)
		if (n <= 0)
			return 0;
			return 0;
		file->f_pos = pos;
		file->f_pos = pos;