Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

wifi: atmel: Fix atmel_private_handler array size

Fix the atmel_private_handler to correctly sized (1 element) again. (I
should have checked the data segment for differences.) This had no
behavioral impact (no private callbacks), but it made a very large
zero-filled array.

Cc: Simon Kelley <simon@thekelleys.org.uk>
Cc: Kalle Valo <kvalo@kernel.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Paolo Abeni <pabeni@redhat.com>
Cc: linux-wireless@vger.kernel.org
Cc: netdev@vger.kernel.org
Fixes: 8af9d4068e86 ("wifi: atmel: Avoid clashing function prototypes")
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221018023732.never.700-kees@kernel.org

authored by

Kees Cook and committed by
Kalle Valo
8b860466 7bb09fb8

+1 -1
+1 -1
drivers/net/wireless/atmel/atmel.c
··· 2570 2570 2571 2571 static const iw_handler atmel_private_handler[] = 2572 2572 { 2573 - IW_HANDLER(SIOCIWFIRSTPRIV, NULL), 2573 + NULL, /* SIOCIWFIRSTPRIV */ 2574 2574 }; 2575 2575 2576 2576 struct atmel_priv_ioctl {