linux/drivers/net/wireless/broadcom/b43legacy
Mike Rapoport (Microsoft) 1cb971bb97 wifi: b43, b43legacy: debugfs: use kzalloc() to allocate formatting buffers
b43* debugfs functions allocate 16 KiB buffers for formatting debug output
text using __get_free_pages().

kzalloc() provides a better API that does not require ugly casts and
kfree() does not need to know the size of the freed object and for 16 Kib
allocation kzalloc() will anyway delegate it to buddy.

Replace use of __get_free_pages() with kzalloc().

Link: https://lore.kernel.org/all/635405e4-9423-4a25-a6e7-e03c8ea0bcbe@redhat.com
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Link: https://patch.msgid.link/20260701-b4-drivers-wireless-v1-1-60264cdf2efe@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2026-07-06 12:58:07 +02:00
..
b43legacy.h wifi: b43: fix incorrect __packed annotation 2023-05-17 09:24:09 +03:00
debugfs.c wifi: b43, b43legacy: debugfs: use kzalloc() to allocate formatting buffers 2026-07-06 12:58:07 +02:00
debugfs.h
dma.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
dma.h
ilt.c
ilt.h
Kconfig
leds.c wifi: move from strlcpy with unused retval to strscpy 2022-09-02 11:47:22 +03:00
leds.h
main.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
main.h
Makefile
phy.c
phy.h
pio.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
pio.h
radio.c wifi: b43legacy: remove unused freq_r3A_value function 2023-03-31 17:50:09 +03:00
radio.h
rfkill.c
rfkill.h
sysfs.c wifi: b43: Convert sprintf/snprintf to sysfs_emit 2024-03-21 17:07:53 +02:00
sysfs.h
xmit.c wifi: b43legacy: enforce bounds check on firmware key index in RX path 2026-04-27 12:39:57 +02:00
xmit.h