diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2026-05-25 12:54:01 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-05-28 03:00:44 +0300 |
| commit | f289c0664f64578355d10a85a6e0108fd182043c (patch) | |
| tree | 02a22567cc59580f9b319e47406878d30c656a49 /include | |
| parent | aa064a614efcfa4c300609d1f01134e99a12ad10 (diff) | |
| download | linux-f289c0664f64578355d10a85a6e0108fd182043c.tar.xz | |
net/dns_resolver: consolidate namelen checks in dns_query
Consolidate the namelen checks and return -EINVAL early if needed. Drop
the namelen == 0 check since it is covered by namelen < 3.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260525095400.821912-3-thorsten.blum@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
