net/i40e: add null input checks
authorMurphy Yang <murphyx.yang@intel.com>
Fri, 8 Jan 2021 08:30:11 +0000 (08:30 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 13 Jan 2021 17:51:58 +0000 (18:51 +0100)
commit696ad314ccfcd708534aeaefbd946f872278e023
treec53b1fe55f95497b2a9565a40e416f0ad73e1a7f
parent1c301e8c3cff02501b5bd35feae30193fd3e65e1
net/i40e: add null input checks

Pointer 'NULL' check for 'mac_addr' or 'conf' within i40e PMD APIs.

Fixes: 66c78f4799ff ("net/i40e: add support for packet template to flow director")
Fixes: 04b443fb2c43 ("net/i40e: fix port id type")
Cc: stable@dpdk.org
Signed-off-by: Murphy Yang <murphyx.yang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/rte_pmd_i40e.c