mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
VSOCK: Use kvfree()
Use kvfree() instead of open-coding it. Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
4d93824561
commit
b226acab2f
@ -434,10 +434,7 @@ err:
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user