net/bnxt: fix interrupt vector initialization
authorNaresh Kumar PBS <nareshkumar.pbs@broadcom.com>
Sat, 8 Jun 2019 19:22:07 +0000 (23:22 +0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 13 Jun 2019 15:01:06 +0000 (00:01 +0900)
commit55b60de05dc527dcb96bc2f355b606f7951dd6c9
tree01080d05f737878c9f8dae86ac5979c4748ed6c9
parenta9586abdbcb3178b94570dd0af3646104f1154cd
net/bnxt: fix interrupt vector initialization

Initialize the vector array when it is valid, thereby
preventing a case were it may be accessed when
the array is unallocated

Fixes: 1fe427fd08ee ("net/bnxt: support enable/disable interrupt")
Cc: stable@dpdk.org
Signed-off-by: Naresh Kumar PBS <nareshkumar.pbs@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Lance Richardson <lance.richardson@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c