Re: [PATCH] net: Use kmemdup instead of kmalloc and memcpy

2016-12-27 Thread David Miller
From: Shyam Saini Date: Sat, 24 Dec 2016 00:44:58 +0530 > when some other buffer is immediately copied into allocated region. > Replace calls to kmalloc followed by a memcpy with a direct > call to kmemdup. > > Signed-off-by: Shyam Saini Applied.

[PATCH] net: Use kmemdup instead of kmalloc and memcpy

2016-12-23 Thread Shyam Saini
when some other buffer is immediately copied into allocated region. Replace calls to kmalloc followed by a memcpy with a direct call to kmemdup. Signed-off-by: Shyam Saini --- drivers/net/virtio_net.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/virtio_net.c