eal: check vsnprintf failure in devargs parsing
authorTyler Retzlaff <roretzla@linux.microsoft.com>
Mon, 15 Mar 2021 23:55:24 +0000 (16:55 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 19 Apr 2021 09:18:07 +0000 (11:18 +0200)
commite8eb80e8bfe7e0eef2c3a55cb9a4ee7c9ba12b4c
treecafc78d19703cbe25f063ce65ba9094f346941f3
parent7cf32a22b240f2db9e509ffe7b267673adbee35f
eal: check vsnprintf failure in devargs parsing

Check for failure, while here just increment len once after checking for
failure instead of duplicating len + 1 math in two different argument
lists.

Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
lib/librte_eal/common/eal_common_devargs.c