]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
NFS: flav_array honors NFS_MAX_SECFLAVORS
authorBryan Schumaker <bjschuma@netapp.com>
Wed, 13 Apr 2011 18:31:29 +0000 (14:31 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 13 Apr 2011 19:12:22 +0000 (15:12 -0400)
NFS_MAX_SECFLAVORS should already take into account RPC_AUTH_UNIX
and RPC_AUTH_NULL, so we don't need to set aside extra slots
for them.

Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c

index 8a03ee0689f38e04f50bc2478d1ef6587c8db1ee..8833472c09a971dca235271806159a53d41e3df8 100644 (file)
@@ -2215,7 +2215,7 @@ static int nfs4_proc_get_root(struct nfs_server *server, struct nfs_fh *fhandle,
                              struct nfs_fsinfo *info)
 {
        int i, len, status = 0;
-       rpc_authflavor_t flav_array[NFS_MAX_SECFLAVORS + 2];
+       rpc_authflavor_t flav_array[NFS_MAX_SECFLAVORS];
 
        flav_array[0] = RPC_AUTH_UNIX;
        len = gss_mech_list_pseudoflavors(&flav_array[1]);