summaryrefslogtreecommitdiff
path: root/Documentation/networking
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2022-05-19 03:44:17 +0300
committerJakub Kicinski <kuba@kernel.org>2022-05-20 04:44:51 +0300
commit1172aa6e4a195aaf5941ae89a93068cb9dd07b47 (patch)
treefb24447faff5beeea0b0fb1b22a327fed729a92d /Documentation/networking
parentdbbc7d04c549a43ad343c69e17b27a57e2102041 (diff)
downloadlinux-1172aa6e4a195aaf5941ae89a93068cb9dd07b47.tar.xz
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 <elder@linaro.org> Link: https://lore.kernel.org/r/20220519004417.2109886-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'Documentation/networking')
0 files changed, 0 insertions, 0 deletions