diff options
Diffstat (limited to 'fs/nfs/super.c')
-rw-r--r-- | fs/nfs/super.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index adffe1615c51..b34b7a711d5b 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c | |||
@@ -1685,6 +1685,9 @@ static int nfs4_validate_mount_data(struct nfs4_mount_data **options, | |||
1685 | 1685 | ||
1686 | dprintk("MNTPATH: %s\n", *mntpath); | 1686 | dprintk("MNTPATH: %s\n", *mntpath); |
1687 | 1687 | ||
1688 | if (args.client_address == NULL) | ||
1689 | goto out_no_client_address; | ||
1690 | |||
1688 | *ip_addr = args.client_address; | 1691 | *ip_addr = args.client_address; |
1689 | 1692 | ||
1690 | break; | 1693 | break; |
@@ -1705,6 +1708,10 @@ out_inval_auth: | |||
1705 | out_no_address: | 1708 | out_no_address: |
1706 | dfprintk(MOUNT, "NFS4: mount program didn't pass remote address\n"); | 1709 | dfprintk(MOUNT, "NFS4: mount program didn't pass remote address\n"); |
1707 | return -EINVAL; | 1710 | return -EINVAL; |
1711 | |||
1712 | out_no_client_address: | ||
1713 | dfprintk(MOUNT, "NFS4: mount program didn't pass callback address\n"); | ||
1714 | return -EINVAL; | ||
1708 | } | 1715 | } |
1709 | 1716 | ||
1710 | /* | 1717 | /* |