Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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)