--- b/fs/nfs/inode.c.orig 2004-09-16 22:03:01.000000000 +0200 +++ b/fs/nfs/inode.c 2004-09-20 22:49:37.000000000 +0200 @@ -829,7 +829,7 @@ if (ctx != NULL) { atomic_set(&ctx->count, 1); ctx->dentry = dget(dentry); - ctx->cred = get_rpccred(cred); + ctx->cred = cred; ctx->state = NULL; ctx->lockowner = current->files; ctx->error = 0; @@ -913,7 +913,6 @@ if ((cred = rpcauth_lookupcred(NFS_CLIENT(inode)->cl_auth, 0)) == NULL) return -ENOMEM; ctx = alloc_nfs_open_context(filp->f_dentry, cred); - put_rpccred(cred); if (ctx == NULL) return -ENOMEM; ctx->mode = filp->f_mode; --- b/fs/nfs/nfs4proc.c.orig 2004-09-14 23:03:09.000000000 +0200 +++ b/fs/nfs/nfs4proc.c 2004-09-20 22:49:52.000000000 +0200 @@ -2015,7 +2015,6 @@ if (unlikely(cred == NULL)) return -ENOMEM; ctx = alloc_nfs_open_context(dentry, cred); - put_rpccred(cred); if (unlikely(ctx == NULL)) return -ENOMEM; status = -EIO; /* ERACE actually */