net/qede/base: fix out-of-bound memory access
net/qede/base: fix out-of-bound memory access

Fix out-of-bound memory access on Management FW interaction for
resource allocation

Fixes: 252b88b58f70 ("net/qede/base: add selftest and query sensor info")

Signed-off-by: Rasesh Mody <d75009eb0204fa4cf57714375498a356a2e6f144@cavium.com>

john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk