We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d26302 commit d5ae1c3Copy full SHA for d5ae1c3
drivers/usb/host/ohci.h
@@ -337,7 +337,7 @@ typedef struct urb_priv {
337
u16 length; // # tds in this request
338
u16 td_cnt; // tds already serviced
339
struct list_head pending;
340
- struct td *td[]; // all TDs in this request
+ struct td *td[] __counted_by(length); // all TDs in this request
341
342
} urb_priv_t;
343
drivers/usb/host/xhci.h
@@ -1666,7 +1666,7 @@ struct xhci_scratchpad {
1666
struct urb_priv {
1667
int num_tds;
1668
int num_tds_done;
1669
- struct xhci_td td[];
+ struct xhci_td td[] __counted_by(num_tds);
1670
};
1671
1672
/*
0 commit comments