]> git.droids-corp.org - dpdk.git/commitdiff
net/hns3: fix an unreasonable memset
authorHuisong Li <lihuisong@huawei.com>
Wed, 1 Jun 2022 03:52:44 +0000 (11:52 +0800)
committerAndrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Thu, 9 Jun 2022 08:57:13 +0000 (10:57 +0200)
Fixes: bba636698316 ("net/hns3: support Rx/Tx and related operations")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_rxtx.c

index be4ab16dcc7c813611cfd0f1504a37e733447975..dcb1cdf168c565b96b6c0a0f78efb5cff00aae5f 100644 (file)
@@ -773,7 +773,7 @@ hns3vf_reset_all_tqps(struct hns3_hw *hw)
        int ret;
        uint16_t i;
 
-       memset(msg_data, 0, sizeof(uint16_t));
+       memset(msg_data, 0, sizeof(msg_data));
        ret = hns3_send_mbx_msg(hw, HNS3_MBX_QUEUE_RESET, 0, msg_data,
                                sizeof(msg_data), true, &reset_status,
                                sizeof(reset_status));