diff options
| author | Jakub Kicinski <[email protected]> | 2022-05-18 17:44:17 -0700 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-05-19 18:44:51 -0700 |
| commit | 1172aa6e4a195aaf5941ae89a93068cb9dd07b47 (patch) | |
| tree | fb24447faff5beeea0b0fb1b22a327fed729a92d /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | dbbc7d04c549a43ad343c69e17b27a57e2102041 (diff) | |
net: ipa: don't proceed to out-of-bound write
GCC 12 seems upset that we check ipa_irq against array bound
but then proceed, anyway:
drivers/net/ipa/ipa_interrupt.c: In function ‘ipa_interrupt_add’:
drivers/net/ipa/ipa_interrupt.c:196:27: warning: array subscript 30 is above array bounds of ‘void (*[30])(struct ipa *, enum ipa_irq_id)’ [-Warray-bounds]
196 | interrupt->handler[ipa_irq] = handler;
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~
drivers/net/ipa/ipa_interrupt.c:42:27: note: while referencing ‘handler’
42 | ipa_irq_handler_t handler[IPA_IRQ_COUNT];
| ^~~~~~~
Reviewed-by: Alex Elder <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions