提交 2c44a234 编写于 作者: W Wei Yongjun 提交者: J. Bruce Fields

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: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Cc: stable@kernel.org
Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
上级 9411b1d4
......@@ -364,7 +364,7 @@ kmem_cache *slab)
min_stateid = 0;
return stid;
out_free:
kfree(stid);
kmem_cache_free(slab, stid);
return NULL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册