fs/nfs.c: use SUNRPC_PORT remote port by default
pico_socket_connect() needs remote_port != 0. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
357c3f1067
commit
3148c20faa
2
fs/nfs.c
2
fs/nfs.c
|
@ -1350,7 +1350,7 @@ static int nfs_probe(struct device_d *dev)
|
|||
|
||||
debug("nfs: server: %s path: %s\n", tmp, npriv->path);
|
||||
|
||||
npriv->con = net_udp_new(npriv->server, 0, nfs_handler, npriv);
|
||||
npriv->con = net_udp_new(npriv->server, SUNRPC_PORT, nfs_handler, npriv);
|
||||
if (IS_ERR(npriv->con)) {
|
||||
ret = PTR_ERR(npriv->con);
|
||||
goto err1;
|
||||
|
|
Loading…
Reference in New Issue