]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/dns_resolver: use kasprintf + kmemdup_nul to simplify dns_query
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 2 Jun 2026 07:13:41 +0000 (09:13 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 5 Jun 2026 01:39:29 +0000 (18:39 -0700)
commit6ce66868d1a62cacecfec7ce628df3227c1808c2
tree87f184166efae75cdbfa347ef319a035d80ae9b6
parent0416f7b354587520e687d4359e7cfbf7656966b1
net/dns_resolver: use kasprintf + kmemdup_nul to simplify dns_query

Use kasprintf() for descriptions with a query type and kmemdup_nul()
otherwise to simplify dns_query().

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260602071343.962830-2-thorsten.blum@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/dns_resolver/dns_query.c