commit | 801822d1beea4f11a38df991b420ca917f6a917b | [log] [tgz] |
---|---|---|
author | Shyam Saini <mayhs11saini@gmail.com> | Sat Dec 24 00:44:58 2016 +0530 |
committer | David S. Miller <davem@davemloft.net> | Thu Dec 29 11:37:14 2016 -0500 |
tree | 2e8ccd20864425053597d8c8448151463f7f7f70 | |
parent | 5671e8c19c8cb4dd432e54f5bc5e2e9a9bac894b [diff] |
net: Use kmemdup instead of kmalloc and memcpy 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 <mayhs11saini@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>