Skip to content

Commit

Permalink
fuse: fix kunmap in fuse_ioctl_copy_user
Browse files Browse the repository at this point in the history
Looks like another victim of the confusing kmap() vs kmap_atomic() API
differences.

Reported-by: Todor Gyumyushev <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Signed-off-by: Miklos Szeredi <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: [email protected]
  • Loading branch information
Jens Axboe authored and Miklos Szeredi committed Nov 4, 2009
1 parent f60311d commit 0bd8718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/fuse/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,7 @@ static int fuse_ioctl_copy_user(struct page **pages, struct iovec *iov,
kaddr += copy;
}

kunmap(map);
kunmap(page);
}

return 0;
Expand Down

0 comments on commit 0bd8718

Please sign in to comment.