eal: fix argument parsing check
authorTetsuya Mukawa <mukawa@igel.co.jp>
Thu, 16 Jun 2016 02:33:09 +0000 (11:33 +0900)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 20 Jun 2016 08:44:43 +0000 (10:44 +0200)
commit3fe2e5fec82becd43b06fafbb5e7e48326f52468
tree1d0c51ad71b02c5a7e839399c4bd2a793c103b74
parent368e2624f23a541831491a61fc0082d9b6008cd8
eal: fix argument parsing check

This patch fixes wrong error checking of rte_eal_parse_devargs_str().
Currently, a return value of strdup() is wrongly checked.

Fixes: 0fe11ec592b2 ("eal: add vdev init and uninit")

Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>
Acked-by: David Marchand <david.marchand@6wind.com>
lib/librte_eal/common/eal_common_devargs.c