Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322617
b: refs/heads/master
c: 872ece8
h: refs/heads/master
i:
  322615: 4780cdc
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Sep 4, 2012
1 parent b805cb6 commit c2704ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c3f52af3e03013db5237e339c817beaae5ec9e3a
refs/heads/master: 872ece86ea5c367aa92f44689c2d01a1c767aeb3
2 changes: 2 additions & 0 deletions trunk/fs/nfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1867,6 +1867,7 @@ static int nfs23_validate_mount_data(void *options,

memcpy(sap, &data->addr, sizeof(data->addr));
args->nfs_server.addrlen = sizeof(data->addr);
args->nfs_server.port = ntohs(data->addr.sin_port);
if (!nfs_verify_server_address(sap))
goto out_no_address;

Expand Down Expand Up @@ -2564,6 +2565,7 @@ static int nfs4_validate_mount_data(void *options,
return -EFAULT;
if (!nfs_verify_server_address(sap))
goto out_no_address;
args->nfs_server.port = ntohs(((struct sockaddr_in *)sap)->sin_port);

if (data->auth_flavourlen) {
if (data->auth_flavourlen > 1)
Expand Down

0 comments on commit c2704ad

Please sign in to comment.