net/hns3: fix out of bounds access
authorYunjian Wang <wangyunjian@huawei.com>
Mon, 7 Sep 2020 01:46:33 +0000 (09:46 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:07 +0000 (18:55 +0200)
commitc4c6c4c1f0ea8d8aac9d63a134d9f7a037aed493
tree75f31762b608f0a84d234e54ddcc0bb9b5d08bfc
parentef30148ac281a5a415a3c332a30d2616056c329a
net/hns3: fix out of bounds access

This patch fixes (out-of-bounds access) coverity issue.

Coverity issue: 349932
Fixes: 7d7f9f80bbfb ("net/hns3: support MAC address related operations")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/hns3/hns3_ethdev.c