Displaying 1 result from an estimated 1 matches for "579ecb4ee4d2".
2023 May 23
0
[PATCH] vhost: use kzalloc() instead of kmalloc() followed by memset()
...node allocated with kmalloc().
>
>Signed-off-by: Prathu Baronia <prathubaronia2011 at gmail.com>
>---
> drivers/vhost/vhost.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
>diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
>index a92af08e7864..579ecb4ee4d2 100644
>--- a/drivers/vhost/vhost.c
>+++ b/drivers/vhost/vhost.c
>@@ -2575,12 +2575,11 @@ EXPORT_SYMBOL_GPL(vhost_disable_notify);
> /* Create a new message. */
> struct vhost_msg_node *vhost_new_msg(struct vhost_virtqueue *vq, int type)
> {
>- struct vhost_msg_node *node = kma...