Merge branch 'for-2.6.39' of git://linux-nfs.org/~bfields/linux

* 'for-2.6.39' of git://linux-nfs.org/~bfields/linux:
  nfsd4: fix oops on lock failure
  nfsd: fix auth_domain reference leak on nlm operations
This commit is contained in:
Linus Torvalds
2011-04-11 15:45:17 -07:00
2 changed files with 6 additions and 4 deletions

View File

@ -397,10 +397,13 @@ static void unhash_generic_stateid(struct nfs4_stateid *stp)
static void free_generic_stateid(struct nfs4_stateid *stp)
{
int oflag = nfs4_access_bmap_to_omode(stp);
int oflag;
nfs4_file_put_access(stp->st_file, oflag);
put_nfs4_file(stp->st_file);
if (stp->st_access_bmap) {
oflag = nfs4_access_bmap_to_omode(stp);
nfs4_file_put_access(stp->st_file, oflag);
put_nfs4_file(stp->st_file);
}
kmem_cache_free(stateid_slab, stp);
}