summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2023-10-28 21:31:00 +0300
committerBjorn Helgaas <bhelgaas@google.com>2023-10-28 21:31:00 +0300
commit7fa8fe0bd926329e5e2383e45c4a6ed71d25120c (patch)
tree3a027b7dc2a68fd352ca410e01914da159aa2709 /drivers
parentc97e5905ab8ec2a8a5be024ecb28fa85c173a4b3 (diff)
parentf741bcadfe52e424985926d4d1c1e3941bf8403e (diff)
downloadlinux-7fa8fe0bd926329e5e2383e45c4a6ed71d25120c.tar.xz
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')
-rw-r--r--drivers/pci/controller/pci-hyperv.c2
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 {