devargs: fix null dereferencing on failure
authorPawel Wodkowski <pawelx.wodkowski@intel.com>
Mon, 2 Mar 2015 11:09:22 +0000 (12:09 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 2 Mar 2015 18:40:54 +0000 (19:40 +0100)
commita001589ec1d7ac0abd6eb382db09d755c5a456f8
tree0392aac632a559802d6258aa88f814a2ac0d7101
parentc3615e4a809f9ec2739fa9c3d12d308d3197269c
devargs: fix null dereferencing on failure

On failure devargs->args should not be accessed if devargs is NULL.

Fixes: c07691ae1089 ("devargs: remove limit on parameters length")

Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Acked-by: David Marchand <david.marchand@6wind.com>
lib/librte_eal/common/eal_common_devargs.c