Skip to content

Commit 7fa8fe0

Browse files
committed
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
2 parents c97e590 + f741bca commit 7fa8fe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/controller/pci-hyperv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ struct hv_pcidev_description {
545545
struct hv_dr_state {
546546
struct list_head list_entry;
547547
u32 device_count;
548-
struct hv_pcidev_description func[];
548+
struct hv_pcidev_description func[] __counted_by(device_count);
549549
};
550550

551551
struct hv_pci_dev {

0 commit comments

Comments
 (0)