Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

DNS: Fixes for the DNS query module

Fixes for the DNS query module, including:

(1) Use 'negative' instead of '-ve' in the documentation.

(2) Mark the kdoc comment with '/**' on dns_query().

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>

authored by

David Howells and committed by
Steve French
ff9517a6 af352fe9

+4 -4
+3 -3
Documentation/networking/dns_resolver.txt
··· 96 96 for the default query type it is just a list of comma-separated IPv4 and 97 97 IPv6 addresses. The caller must free the result. 98 98 99 - The length of the result string is returned on success, and a -ve error 100 - code is returned otherwise. -EKEYREJECTED will be returned if the DNS 101 - lookup failed. 99 + The length of the result string is returned on success, and a negative 100 + error code is returned otherwise. -EKEYREJECTED will be returned if the 101 + DNS lookup failed. 102 102 103 103 If _expiry is non-NULL, the expiry time (TTL) of the result will be 104 104 returned also.
+1 -1
net/dns_resolver/dns_query.c
··· 45 45 46 46 #include "internal.h" 47 47 48 - /* 48 + /** 49 49 * dns_query - Query the DNS 50 50 * @type: Query type (or NULL for straight host->IP lookup) 51 51 * @name: Name to look up