Commit b226acab authored by Wei Yongjun's avatar Wei Yongjun Committed by Michael S. Tsirkin

VSOCK: Use kvfree()

Use kvfree() instead of open-coding it.
Signed-off-by: default avatarWei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment