From: Jens Axboe Date: Tue, 3 Nov 2009 10:40:44 +0000 (+0100) Subject: fuse: fix kunmap in fuse_ioctl_copy_user X-Git-Tag: v2.6.31.6~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c385d8d439907b6cd7b47da86b1837b1006c7228;p=thirdparty%2Fkernel%2Fstable.git fuse: fix kunmap in fuse_ioctl_copy_user commit 0bd87182d3ab18a32a8e9175d3f68754c58e3432 upstream. Looks like another victim of the confusing kmap() vs kmap_atomic() API differences. Reported-by: Todor Gyumyushev Signed-off-by: Jens Axboe Signed-off-by: Miklos Szeredi Cc: Tejun Heo Signed-off-by: Greg Kroah-Hartman --- diff --git a/fs/fuse/file.c b/fs/fuse/file.c index f47c6c13cd970..899870ada1383 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c @@ -1600,7 +1600,7 @@ static int fuse_ioctl_copy_user(struct page **pages, struct iovec *iov, kaddr += copy; } - kunmap(map); + kunmap(page); } return 0;