pmdinfogen: fix null dereference
authorNeil Horman <nhorman@tuxdriver.com>
Thu, 5 Jan 2017 19:22:41 +0000 (14:22 -0500)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 6 Jan 2017 10:40:30 +0000 (11:40 +0100)
commit348e470bc6be6f28fc197f6d2dc4f3cebb43e719
tree5d80bda292470b41833798f86a6b1478aafb99eb
parent86c743cf9140806ab9d61f63768e516aae477860
pmdinfogen: fix null dereference

Coverity reports a forward null dereference from a for loop
that works with a variable previously tested for null that had no error
handling or condition to prevent it.  Pretty obvious fix below.

Coverity issue: 139593
Fixes: 98b0fdb0ffc6 ("pmdinfogen: add buildtools and pmdinfogen utility")

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
buildtools/pmdinfogen/pmdinfogen.c