projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d93824
)
VSOCK: Use kvfree()
author
Wei Yongjun
<weiyj.lk@gmail.com>
Tue, 2 Aug 2016 13:50:42 +0000
(13:50 +0000)
committer
Michael S. Tsirkin
<mst@redhat.com>
Tue, 2 Aug 2016 13:56:08 +0000
(16:56 +0300)
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>
drivers/vhost/vsock.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/vhost/vsock.c
b/drivers/vhost/vsock.c
index 028ca16c2d36e6f0754691c9d80c92a0d316494a..0ddf3a2dbfc490a58d150039a57136460e9a1e08 100644
(file)
--- a/
drivers/vhost/vsock.c
+++ b/
drivers/vhost/vsock.c
@@
-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)