提交 c6daa7ff 编写于 作者: C Cong Wang 提交者: Cong Wang

vhost: remove the second argument of k[un]map_atomic()

Signed-off-by: NCong Wang <amwang@redhat.com>
上级 ca747d61
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册