diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index 154c231246d9815eb5ceafebd7c631827ab3e410..e882c2053df73a7ce9da45ab422b3967ee33f519 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -5471,13 +5471,13 @@ static void hclge_fd_get_tcpip6_info(struct hclge_fd_rule *rule, if (rule->unused_tuple & BIT(INNER_SRC_IP)) memset(spec_mask->ip6src, 0, sizeof(int) * IPV6_SIZE); else - cpu_to_be32_array(spec->ip6src, rule->tuples_mask.src_ip, + cpu_to_be32_array(spec_mask->ip6src, rule->tuples_mask.src_ip, IPV6_SIZE); if (rule->unused_tuple & BIT(INNER_DST_IP)) memset(spec_mask->ip6dst, 0, sizeof(int) * IPV6_SIZE); else - cpu_to_be32_array(spec->ip6dst, rule->tuples_mask.dst_ip, + cpu_to_be32_array(spec_mask->ip6dst, rule->tuples_mask.dst_ip, IPV6_SIZE); spec->psrc = cpu_to_be16(rule->tuples.src_port);