summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/network.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c
index f1f5c1bf5..e9c8a6805 100644
--- a/mdk-stage1/network.c
+++ b/mdk-stage1/network.c
@@ -878,9 +878,9 @@ enum return_type nfs_prepare(void)
}
results = try_with_directory(nfs_own_mount, "nfs", "nfs-iso");
- if (results == RETURN_BACK)
+ if (results != RETURN_OK)
umount(nfs_own_mount);
- else if (results == RETURN_ERROR)
+ if (results == RETURN_ERROR)
return RETURN_ERROR;
}
while (results == RETURN_BACK);