diff options
Diffstat (limited to 'utils/mount/stropts.c')
-rw-r--r-- | utils/mount/stropts.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c index ec95b78..30ac5ae 100644 --- a/utils/mount/stropts.c +++ b/utils/mount/stropts.c @@ -450,7 +450,10 @@ static struct mount_options *nfs_rewrite_mount_options(char *str) goto err; } - nfs_options2pmap(options, &nfs_pmap, &mnt_pmap); + if (!nfs_options2pmap(options, &nfs_pmap, &mnt_pmap)) { + errno = EINVAL; + goto err; + } /* The kernel NFS client doesn't support changing the RPC program * number for these services, so reset these fields before probing |