net/bnxt: return error in stats if init is not complete
authorJay Ding <jay.ding@broadcom.com>
Tue, 1 May 2018 01:06:12 +0000 (18:06 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 May 2018 21:31:49 +0000 (22:31 +0100)
commit327cf9fd1001f9bd4df1159084f091ca384d804d
treea75d54edf8371d1ef9ddafe4d65f4e5a96f4d80a
parent3d911af8607b2c4a546f118cde89e04b58671caf
net/bnxt: return error in stats if init is not complete

return error if init is not complete before accessing stats.

Fixes: ed2ced6fe927 ("net/bnxt: check initialization before accessing stats")
Cc: stable@dpdk.org
Signed-off-by: Jay Ding <jay.ding@broadcom.com>
Signed-off-by: Scott Branden <scott.branden@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_stats.c