app/testpmd: fix crash when portmask is specified
authorTetsuya Mukawa <mukawa@igel.co.jp>
Fri, 27 Feb 2015 07:16:15 +0000 (16:16 +0900)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 27 Feb 2015 23:24:32 +0000 (00:24 +0100)
commitffc468ff3cfe768b0132f851cef6382cd16a3c68
tree278dccfd70e0dd05b06ee5c2f9b73360e43d755b
parente34550c8b97826e23c5d0614ef0ce8ab7093c903
app/testpmd: fix crash when portmask is specified

If testpmd is invoked with portmask option like below, segmentation
fault will occur. This patch fixes the issue.

Reported-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test-pmd/testpmd.c