net/ice: fix dereferenced null pointer
authorSimei Su <simei.su@intel.com>
Mon, 11 Oct 2021 08:25:25 +0000 (16:25 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Thu, 14 Oct 2021 06:26:43 +0000 (08:26 +0200)
commit9f8c4cf02d4cb7c88000d4224b42f7d76d4fa8dd
tree61cf5436575913f85e06a4ba2826ce5b343aca09
parentfff4914bd9e6bcb68faea5b988942477f73ee34e
net/ice: fix dereferenced null pointer

This patch fixes coverity issue by avoiding use of null pointer
in taking false branch.

Coverity issue: 373360
Fixes: 437dbd2fd428 ("net/ice: support 1PPS")

Signed-off-by: Simei Su <simei.su@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_ethdev.c