9
0
Fork 0

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:
Uwe Kleine-König 2014-02-07 22:28:04 +01:00 committed by Sascha Hauer
parent 47eb6b50bb
commit e674513448
1 changed files with 1 additions and 1 deletions

View File

@ -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;