提交 b226acab 编写于 作者: W Wei Yongjun 提交者: Michael S. Tsirkin

VSOCK: Use kvfree()

Use kvfree() instead of open-coding it.
Signed-off-by: NWei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
上级 4d938245
......@@ -434,10 +434,7 @@ static int vhost_vsock_stop(struct vhost_vsock *vsock)
static void vhost_vsock_free(struct vhost_vsock *vsock)
{
if (is_vmalloc_addr(vsock))
vfree(vsock);
else
kfree(vsock);
kvfree(vsock);
}
static int vhost_vsock_dev_open(struct inode *inode, struct file *file)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册