aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/dns_resolve.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/dns_resolve.c')
-rw-r--r--fs/cifs/dns_resolve.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/cifs/dns_resolve.c b/fs/cifs/dns_resolve.c
index 777a086abd6f..ef7f43824347 100644
--- a/fs/cifs/dns_resolve.c
+++ b/fs/cifs/dns_resolve.c
@@ -64,13 +64,14 @@ struct key_type key_type_dns_resolver = {
64 * return 0 on success 64 * return 0 on success
65 */ 65 */
66int 66int
67dns_resolve_server_name_to_ip(const char *unc, char **ip_addr) { 67dns_resolve_server_name_to_ip(const char *unc, char **ip_addr)
68{
68 int rc = -EAGAIN; 69 int rc = -EAGAIN;
69 struct key *rkey; 70 struct key *rkey;
70 char *name; 71 char *name;
71 int len; 72 int len;
72 73
73 if ((!ip_addr) || (!unc)) 74 if (!ip_addr || !unc)
74 return -EINVAL; 75 return -EINVAL;
75 76
76 /* search for server name delimiter */ 77 /* search for server name delimiter */