Commit 8701dd18 authored by Trond Myklebust's avatar Trond Myklebust

[PATCH] Fix NFS 'off by one' bug

 This fixes a bug that was found using the Stanford checker.
parent 51fe403a
......@@ -1440,7 +1440,7 @@ static struct super_block *nfs4_get_sb(struct file_system_type *fs_type,
server->mnt_path = p;
p = nfs_copy_user_string(server->ip_addr, &data->client_addr,
sizeof(server->ip_addr));
sizeof(server->ip_addr) - 1);
if (IS_ERR(p))
goto out_err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment