[RFC v2 04/16] fs/nfs.c: use SUNRPC_PORT remote port by default
Antony Pavlov
antonynpavlov at gmail.com
Sun Jul 19 13:07:11 PDT 2015
pico_socket_connect() needs remote_port != 0.
Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
---
fs/nfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/nfs.c b/fs/nfs.c
index 0269814..3824752 100644
--- a/fs/nfs.c
+++ b/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;
--
2.1.4
More information about the barebox
mailing list