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

Commit 3836df6b authored by Jens Axboe's avatar Jens Axboe Committed by Linus Torvalds
Browse files

ocfs2: bad kunmap_atomic()



kunmap_atomic() takes the virtual address, not the mapped page as
argument.

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
Cc: Mark Fasheh <mark.fasheh@oracle.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 2f66b529
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2153,7 +2153,7 @@ static int ocfs2_splice_write_actor(struct pipe_inode_info *pipe,
	src = buf->ops->map(pipe, buf, 1);
	dst = kmap_atomic(page, KM_USER1);
	memcpy(dst + offset, src + buf->offset, count);
	kunmap_atomic(page, KM_USER1);
	kunmap_atomic(dst, KM_USER1);
	buf->ops->unmap(pipe, buf, src);

	copied = ocfs2_write_end(file, file->f_mapping, sd->pos, count, count,