summaryrefslogtreecommitdiffstats
path: root/fs/nfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs.c')
-rw-r--r--fs/nfs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/nfs.c b/fs/nfs.c
index eb5db344db..d7f156687f 100644
--- a/fs/nfs.c
+++ b/fs/nfs.c
@@ -1293,7 +1293,11 @@ static int nfs_probe(struct device_d *dev)
npriv->path = xstrdup(path + 1);
- npriv->server = resolv(tmp);
+ ret = resolv(tmp, &npriv->server);
+ if (ret) {
+ printf("cannot resolve \"%s\": %s\n", tmp, strerror(-ret));
+ goto err1;
+ }
debug("nfs: server: %s path: %s\n", tmp, npriv->path);