nfs: fix mount prog version in portmap lookup
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 <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
47eb6b50bb
commit
e674513448
2
fs/nfs.c
2
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;
|
||||
|
|
Loading…
Reference in New Issue