From e6745134480680e2163dfe16cb5798bcd20e8ef4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Fri, 7 Feb 2014 22:28:04 +0100 Subject: [PATCH] nfs: fix mount prog version in portmap lookup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We're speaking rpc mount version 2 (i.e. the same version as the implemented nfs protocol), so also specify that in the lookup. Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer --- fs/nfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs.c b/fs/nfs.c index 717326435..6582bae7d 100644 --- a/fs/nfs.c +++ b/fs/nfs.c @@ -1010,7 +1010,7 @@ static int nfs_probe(struct device_d *dev) /* Need a priviliged source port */ net_udp_bind(npriv->con, 1000); - ret = rpc_lookup_req(npriv, PROG_MOUNT, 1); + ret = rpc_lookup_req(npriv, PROG_MOUNT, 2); if (ret) { printf("lookup mount port failed with %d\n", ret); goto err2;