]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
keys, dns: Use kmalloc_flex to improve dns_resolver_preparse
authorThorsten Blum <thorsten.blum@linux.dev>
Thu, 26 Feb 2026 21:49:29 +0000 (22:49 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 28 Feb 2026 16:48:21 +0000 (08:48 -0800)
commita9a13c7379ec577e676dca57aa2d7b7980aaa05b
tree0ee2f6c51285c89172801290b9e49d517fcab617
parent58e443b773ef054ae069cf777ba19adb99d73829
keys, dns: Use kmalloc_flex to improve dns_resolver_preparse

Use kmalloc_flex() when allocating a new 'struct user_key_payload' in
dns_resolver_preparse() to replace the open-coded size arithmetic.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20260226214930.785423-3-thorsten.blum@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/dns_resolver/dns_key.c