net/qede/base: fix access to an uninitialized list
authorRasesh Mody <rasesh.mody@cavium.com>
Sat, 7 Oct 2017 06:31:09 +0000 (23:31 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 12 Oct 2017 00:36:58 +0000 (01:36 +0100)
commit8335b809f71bbdab25b895ddd268d5f180f1dda0
treea03c49dd6bc24699d6ce7aa320855a45265daee9
parent2b68b841d719593d3251c984956ed69a6c6f0499
net/qede/base: fix access to an uninitialized list

Fix an access to an uninitialized list when the management FW is not
initialized by simply doing the list initialization always, at a
previous step, before ecore_mcp_cmd_init() can stop in the middle and
return.

Fixes: 22c996968bf7 ("net/qede/base: revise management FW mbox access scheme")
Cc: stable@dpdk.org
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/base/ecore_mcp.c