diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2023-10-28 13:31:00 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2023-10-28 13:31:00 -0500 |
commit | 7fa8fe0bd926329e5e2383e45c4a6ed71d25120c (patch) | |
tree | 3a027b7dc2a68fd352ca410e01914da159aa2709 /drivers/pci | |
parent | c97e5905ab8ec2a8a5be024ecb28fa85c173a4b3 (diff) | |
parent | f741bcadfe52e424985926d4d1c1e3941bf8403e (diff) |
Merge branch 'pci/controller/hyperv'
- Annotate struct hv_dr_state with __counted_by to prepare for array access
bounds checking (Kees Cook)
* pci/controller/hyperv:
PCI: hv: Annotate struct hv_dr_state with __counted_by
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/controller/pci-hyperv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/controller/pci-hyperv.c b/drivers/pci/controller/pci-hyperv.c index bed3cefdaf19..30c7dfeccb16 100644 --- a/drivers/pci/controller/pci-hyperv.c +++ b/drivers/pci/controller/pci-hyperv.c @@ -545,7 +545,7 @@ struct hv_pcidev_description { struct hv_dr_state { struct list_head list_entry; u32 device_count; - struct hv_pcidev_description func[]; + struct hv_pcidev_description func[] __counted_by(device_count); }; struct hv_pci_dev { |