[dpdk-dev] [EXT] [PATCH v3] examples/ipsec-secgw: fix negative argument passing

Akhil Goyal akhil.goyal at nxp.com
Sun May 10 00:02:43 CEST 2020


> > Function create_ipsec_esp_flow returns a negative number in case of any
> failure
> > and we are passing this to strerror to display the error message.
> > But strerror()'s argument cannot be negative.
> > In case of failure, displaying exact error message to console is handled in
> > create_ipsec_esp_flow function.So it is not required to print the error message
> > again using strerror.
> > This patch will remove the unnecessary calling of strerror function to fix the
> > negative argument passing to strerror issue.
> >
> > Coverity issue: 357691
> > Fixes: 6738c0a95695 ("examples/ipsec-secgw: support flow director")
> > Cc: praveen.shetty at intel.com
> >
> > Signed-off-by: Praveen Shetty <praveen.shetty at intel.com>
> > Acked-by: Lukasz Wojciechowski <l.wojciechow at partner.samsung.com>
> 
> Acked-by: Anoob Joseph <anoobj at marvell.com>

Applied to dpdk-next-crypto

Thanks.


More information about the dev mailing list