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

- From: David Miller \<davem@davemloft.net\>
- Date: 2016-12-28 01:16:47 
- List: netdev
- Page: https://ratatoskr.run/netdev/2016/12/11038931
- Thread: https://ratatoskr.run/netdev/2016/12/11038867/t.md

```text
From: Shyam Saini <redacted>
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 <redacted>

Applied.
```
