[dpdk-dev] [PATCH v2] cmdline: check return value at initialization
Thomas Monjalon
thomas.monjalon at 6wind.com
Thu May 19 14:26:02 CEST 2016
2016-05-17 10:36, Olivier Matz:
> From: Marcin Kerlin <marcinx.kerlin at intel.com>
>
> The value returned by rdline_init() was not checked in cmdline_new().
> On error, free the allocated memory and return NULL.
>
> This condition should not happen today, but it's safer to do the check
> in case rdline_init() is updated.
>
> Fixes: af75078fece3 ("first public release")
> Coverity ID 13204
>
> Signed-off-by: Marcin Kerlin <marcinx.kerlin at intel.com>
> Signed-off-by: Olivier Matz <olivier.matz at 6wind.com>
> ---
>
> Hi Marcin,
>
> I updated the commit log and title to be clearer.
Applied, thanks
More information about the dev
mailing list