summaryrefslogtreecommitdiff
path: root/fs/nfsd
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-04-09 14:15:31 +0800
committerJ. Bruce Fields <bfields@redhat.com>2013-04-09 09:08:47 -0400
commit2c44a23471d048118e49b616d08df0729cdbd9f1 (patch)
tree5ac9a2901ed69c5a5e870023bce461513200f55f /fs/nfsd
parent9411b1d4c7df26dca6bc6261b5dc87a5b4c81e5c (diff)
downloadlinux-stable-2c44a23471d048118e49b616d08df0729cdbd9f1.tar.gz
linux-stable-2c44a23471d048118e49b616d08df0729cdbd9f1.tar.bz2
linux-stable-2c44a23471d048118e49b616d08df0729cdbd9f1.zip
nfsd: use kmem_cache_free() instead of kfree()
memory allocated by kmem_cache_alloc() should be freed using kmem_cache_free(), not kfree(). Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Cc: stable@kernel.org Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index bcd2339ae8c1..9cb9f6e3f5f2 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -364,7 +364,7 @@ kmem_cache *slab)
min_stateid = 0;
return stid;
out_free:
- kfree(stid);
+ kmem_cache_free(slab, stid);
return NULL;
}