Re: [PATCH net-next v2] net/dns_resolver: use kasprintf + kmemdup_nul to simplify dns_query

From: Simon Horman

Date: Thu Jun 04 2026 - 08:43:36 EST


On Tue, Jun 02, 2026 at 09:13:41AM +0200, Thorsten Blum wrote:
> Use kasprintf() for descriptions with a query type and kmemdup_nul()
> otherwise to simplify dns_query().
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
> ---
> Changes in v2:
> - Reverse xmas tree (Jakub)
> - v1: https://lore.kernel.org/lkml/20260528222030.1655010-2-thorsten.blum@xxxxxxxxx/

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>