diff options
author | Cong Wang <amwang@redhat.com> | 2011-11-25 23:14:26 +0800 |
---|---|---|
committer | Cong Wang <xiyou.wangcong@gmail.com> | 2012-03-20 21:48:21 +0800 |
commit | c6daa7ffa834c850b3dbb38af6980415caef680d (patch) | |
tree | d41226b04d4a06ac613fdd7c4593ec196b803752 /drivers | |
parent | ca747d610b765f184e0662088dd9aeecf9a17822 (diff) | |
download | linux-c6daa7ffa834c850b3dbb38af6980415caef680d.tar.bz2 |
vhost: remove the second argument of k[un]map_atomic()
Signed-off-by: Cong Wang <amwang@redhat.com>
Diffstat (limited to 'drivers')
-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; |