net/iavf: fix null pointer dereference in eCPRI rule
authorSimei Su <simei.su@intel.com>
Thu, 14 Jan 2021 05:23:24 +0000 (13:23 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 19 Jan 2021 02:30:13 +0000 (03:30 +0100)
commitd62be9ce13bd328952bdeeb81f3942956f978fbe
tree61aa1e8c40f2752122931892de76ab08cabfe3f3
parent5171b4ee6b6b19074194045f28639cb8c7874d04
net/iavf: fix null pointer dereference in eCPRI rule

A pointer has already been dereferenced before checking if it is NULL.
It doesn't make any sense, so correct to avoid it.

Coverity issue: 365290
Fixes: f57ebdae3cd0 ("net/iavf: support eCPRI message type 0 for RSS")

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