net/ice: check cache pointer before dereference
authorWenzhuo Lu <wenzhuo.lu@intel.com>
Tue, 10 Nov 2020 06:45:52 +0000 (14:45 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Nov 2020 18:43:26 +0000 (19:43 +0100)
commit4e61f1ac803ab508afeb47ca226b531ac22f6eb9
tree5382e50bcbc23a8ac1921ab35f488f1f43aaca5c
parentfe5d0e85b713013cb32f9b506cee7caf2c5ab627
net/ice: check cache pointer before dereference

The return value of rte_mempool_default_cache should be
checked as it can be NULL.

Fixes: a4e480de268e ("net/ice: optimize Tx by using AVX512")

Reported-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
drivers/net/ice/ice_rxtx_vec_avx512.c