Re: [PATCH RESEND V2 net 6/7] net: hns3: fixed hclge_fetch_pf_reg accesses bar space out of bounds issue
From: Paolo Abeni
Date: Thu Dec 19 2024 - 04:51:56 EST
On 12/18/24 10:29, Michal Swiatkowski wrote:
>> @@ -533,10 +533,11 @@ static int hclge_fetch_pf_reg(struct hclge_dev *hdev, void *data,
>> reg_num = ARRAY_SIZE(ring_reg_addr_list);
>> for (j = 0; j < kinfo->num_tqps; j++) {
> You can define struct hnae3_queue *tqp here to limit the scope
> (same in VF case).
@Michal, please let me refer to prior feedback from Jakub:
https://lore.kernel.org/netdev/20241028163554.7dddff8b@xxxxxxxxxx/
I also agree subjective stylistic feedback should be avoided unless the
style issue is really gross - in such a case the feedback should not be
subjective, so the original guidance still applies ;)
Thanks,
Paolo