net/i40e: fix out of scope variable
authorAlvin Zhang <alvinx.zhang@intel.com>
Fri, 15 Jan 2021 08:34:11 +0000 (16:34 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 19 Jan 2021 12:49:41 +0000 (13:49 +0100)
commit52a6478257b26b0eada505d815790c83280be27a
treea25eb4481b0653f19090c44a744aaecdb6d24f7c
parenta8f630fa06964874132605d965221407241dfc84
net/i40e: fix out of scope variable

Using "key", which points to an out-of-scope variable "rss_key_default".

Coverity issue: 365293
Fixes: ef4c16fd9148 ("net/i40e: refactor RSS flow")

Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/i40e_hash.c