null: fix dereference before null check
authorTetsuya Mukawa <mukawa@igel.co.jp>
Mon, 16 Mar 2015 03:43:21 +0000 (12:43 +0900)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 17 Mar 2015 22:01:31 +0000 (23:01 +0100)
commit8d59064fb3c323f3fcc6441fc262d04611b794a0
tree465f6248ead6475a280861cb476b7a55bd8fb137
parent6e225d6a21c10ea3a83fd6fc5a2bc2d7f27bf841
null: fix dereference before null check

This patch fixes potential null pointer access of eth_null_copy_tx().

Reported-by: John Mcnamara <john.mcnamara@intel.com>
Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>
lib/librte_pmd_null/rte_eth_null.c