Re: [PATCH v3] ipv6/sit: fix ipip6_tunnel_get_prl return value
From: Eric Dumazet
Date: Tue Jun 28 2022 - 07:57:56 EST
On Tue, Jun 28, 2022 at 5:50 AM <zys.zljxml@xxxxxxxxx> wrote:
>
> From: katrinzhou <katrinzhou@xxxxxxxxxxx>
>
> When kcalloc fails, ipip6_tunnel_get_prl() should return -ENOMEM.
> Move the position of label "out" to return correctly.
>
> Addresses-Coverity: ("Unused value")
> Fixes: 300aaeeaab5f ("[IPV6] SIT: Add SIOCGETPRL ioctl to get/dump PRL.")
> Signed-off-by: katrinzhou <katrinzhou@xxxxxxxxxxx>
> ---
>
Reviewed-by: Eric Dumazet<edumazet@xxxxxxxxxx>