net/i40e: fix dereference before null check in mbuf release
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 8 Apr 2019 09:46:38 +0000 (10:46 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 22 Apr 2019 22:15:10 +0000 (00:15 +0200)
commit3f1b8bf9139ab94aa5ba1334499c3928ec630359
tree4d3e0f6d746431600d6b875b2dbab2c075d78b83
parent6fd5b5734faf2f902aebf57e966e5adb0499a1ff
net/i40e: fix dereference before null check in mbuf release

Coverity flags that the txq variable is used before it's checked for NULL.
Also fix typo in error message.

Coverity issue: 195023
Fixes: 24853544c84c ("net/i40e: fix mbuf free in vector Tx")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Rami Rosen <ramirose@gmail.com>
drivers/net/i40e/i40e_rxtx.c