commit | 7fa41efac14ffbe8db7660ad2da3928969d10caf | [log] [tgz] |
---|---|---|
author | YueHaibing <yuehaibing@huawei.com> | Mon Jul 23 16:33:19 2018 +0800 |
committer | David S. Miller <davem@davemloft.net> | Mon Jul 23 09:39:07 2018 -0700 |
tree | b051350ed5159074f9061128e528d7167fe9b1f4 | |
parent | f8b2990fd91ecf66ee030da26de8336b28d3e1aa [diff] |
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>