]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
fuse: fix kunmap in fuse_ioctl_copy_user
authorJens Axboe <jens.axboe@oracle.com>
Tue, 3 Nov 2009 10:40:44 +0000 (11:40 +0100)
committerMiklos Szeredi <mszeredi@suse.cz>
Wed, 4 Nov 2009 09:24:51 +0000 (10:24 +0100)
Looks like another victim of the confusing kmap() vs kmap_atomic() API
differences.

Reported-by: Todor Gyumyushev <yodor1@gmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Cc: Tejun Heo <tj@kernel.org>
Cc: stable@kernel.org
fs/fuse/file.c

index 5887a6395ad2a912e6330a7d13a7270531742131..c18913a777ae3865148c9bbd679d0c09ff092f4f 100644 (file)
@@ -1600,7 +1600,7 @@ static int fuse_ioctl_copy_user(struct page **pages, struct iovec *iov,
                        kaddr += copy;
                }
 
-               kunmap(map);
+               kunmap(page);
        }
 
        return 0;