]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: sr: Use kmemdup instead of duplicating it in parse_nla_srh
authorYueHaibing <yuehaibing@huawei.com>
Mon, 23 Jul 2018 08:33:19 +0000 (16:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Jul 2018 16:39:07 +0000 (09:39 -0700)
commit21901a09acb686cba7ceb220038f1f8c4c7518af
treeb051350ed5159074f9061128e528d7167fe9b1f4
parent9e99c219d660793fe042af9e4f68a3f29bba1c3c
ipv6: sr: Use kmemdup instead of duplicating it in parse_nla_srh

Replace calls to kmalloc followed by a memcpy with a direct call to
kmemdup.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/seg6_local.c