projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9411b1d
)
nfsd: use kmem_cache_free() instead of kfree()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Tue, 9 Apr 2013 06:15:31 +0000
(14:15 +0800)
committer
J. Bruce Fields
<bfields@redhat.com>
Tue, 9 Apr 2013 13:08:47 +0000
(09:08 -0400)
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>
fs/nfsd/nfs4state.c
patch
|
blob
|
history
diff --git
a/fs/nfsd/nfs4state.c
b/fs/nfsd/nfs4state.c
index bcd2339ae8c162a54516a809410b83d5991df1a3..9cb9f6e3f5f2f5ab9ec275945be8659d32be5e3c 100644
(file)
--- a/
fs/nfsd/nfs4state.c
+++ b/
fs/nfsd/nfs4state.c
@@
-364,7
+364,7
@@
kmem_cache *slab)
min_stateid = 0;
return stid;
out_free:
- k
free(
stid);
+ k
mem_cache_free(slab,
stid);
return NULL;
}