Re: [PATCH net-next] ipv6: sr: Use kmemdup instead of duplicating it in parse_nla_srh

From: David Miller
Date: Mon Jul 23 2018 - 12:39:34 EST


From: YueHaibing <yuehaibing@xxxxxxxxxx>
Date: Mon, 23 Jul 2018 16:33:19 +0800

> Replace calls to kmalloc followed by a memcpy with a direct call to
> kmemdup.
>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Applied, thank you.