summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorMike Rapoport (Microsoft) <rppt@kernel.org>2026-05-28 13:24:19 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-07-07 17:22:10 +0200
commit274afb49eeb3ac974d74104a55050990caae6faa (patch)
tree7d290b4681a20c6c4ea385e3f7e212cde19f98ad /include/linux/debugobjects.h
parentd26ed502d0c7c05c273b6e45a0b7569f55720af6 (diff)
tty: serial: men_z135_uart: replace __get_free_page() with kmalloc()
men_z135_probe() allocates a receive staging buffer filled by the CPU via memcpy_fromio() from the device MMIO region. This buffer can be allocated with kmalloc() as there's nothing special about it to go directly to the page allocator. kmalloc() provides a better API that does not require ugly casts and kfree() does not need to know the size of the freed object. Replace use of __get_free_page() with kmalloc() and free_page() with kfree(). 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/20260528-b4-tty-v1-3-9da9f7aec5f2@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions