net/bnxt: fix to reset status of initialization
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Tue, 1 May 2018 01:06:13 +0000 (18:06 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 May 2018 21:31:49 +0000 (22:31 +0100)
commite40981101925a2b4403c8760658e6e7b36c35cfa
tree663f42c8787107b81e92aa9df3079ee392113514
parent327cf9fd1001f9bd4df1159084f091ca384d804d
net/bnxt: fix to reset status of initialization

clear flag on stop at proper location to avoid race conditions.

Fixes: ed2ced6fe927 ("net/bnxt: check initialization before accessing stats")
Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c