From c062f45deebc20dae5eb8cdb50fb03fb1c252b47 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Sat, 18 Apr 2009 09:45:46 -0400 Subject: [PATCH] umount.nfs: Fix return value of nfs_mount_protocol() Fix a copy-paste error introduced in nfs_mount_protocol(). It should return an IPPROTO_ number, not an NFS version number. Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson --- utils/mount/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/mount/network.c b/utils/mount/network.c index 234e7f3..72f4b84 100644 --- a/utils/mount/network.c +++ b/utils/mount/network.c @@ -1337,7 +1337,7 @@ static unsigned short nfs_mount_protocol(struct mount_options *options) return IPPROTO_UDP; } - return nfs_nfs_version(options); + return nfs_nfs_protocol(options); } /* -- 2.39.5