diff options
author | Cong Wang <amwang@redhat.com> | 2011-11-25 16:14:26 +0100 |
---|---|---|
committer | Cong Wang <xiyou.wangcong@gmail.com> | 2012-03-20 14:48:21 +0100 |
commit | c6daa7ffa834c850b3dbb38af6980415caef680d (patch) | |
tree | d41226b04d4a06ac613fdd7c4593ec196b803752 /drivers/vhost | |
parent | target: remove the second argument of k[un]map_atomic() (diff) | |
download | linux-c6daa7ffa834c850b3dbb38af6980415caef680d.tar.xz linux-c6daa7ffa834c850b3dbb38af6980415caef680d.zip |
vhost: remove the second argument of k[un]map_atomic()
Signed-off-by: Cong Wang <amwang@redhat.com>
Diffstat (limited to 'drivers/vhost')
-rw-r--r-- | drivers/vhost/vhost.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index c14c42b95ab8..bdb2d6436b2b 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -937,9 +937,9 @@ static int set_bit_to_user(int nr, void __user *addr) if (r < 0) return r; BUG_ON(r != 1); - base = kmap_atomic(page, KM_USER0); + base = kmap_atomic(page); set_bit(bit, base); - kunmap_atomic(base, KM_USER0); + kunmap_atomic(base); set_page_dirty_lock(page); put_page(page); return 0; |