[dpdk-dev] [PATCH v2] eal: save error in string copy

David Marchand david.marchand at redhat.com
Mon Jul 5 12:05:14 CEST 2021


On Sun, Jun 13, 2021 at 10:25 AM Xueming Li <xuemingl at nvidia.com> wrote:
>
> From: Thomas Monjalon <thomas at monjalon.net>
>
> The string copy api rte_strscpy() doesn't set rte_errno during failures,
> instead it just return negative error number.
>
> Sets rte_errrno if the destination buffer is too small.
>
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
> Signed-off-by: Xueming Li <xuemingl at nvidia.com>

Reviewed-by: David Marchand <david.marchand at redhat.com>

Added RN update.
Applied, thanks.

-- 
David Marchand



More information about the dev mailing list