cifs: Fix to use kmem_cache_free() instead of kfree()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 18 Dec 2018 06:37:02 +0000 (06:37 +0000)
committerSteve French <stfrench@microsoft.com>
Fri, 28 Dec 2018 16:09:46 +0000 (10:09 -0600)
commit3e80be0158ac67d936e65935db5b07663822c66d
tree6f2ccd84cd096535c00a840b02798e517dd62b7f
parent54e4f73cbe03dd0634548e40d12c442d377c36c4
cifs: Fix to use kmem_cache_free() instead of kfree()

memory allocated by kmem_cache_alloc() in alloc_cache_entry()
should be freed using kmem_cache_free(), not kfree().

Fixes: 34a44fb160f9 ("cifs: Add DFS cache routines")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
fs/cifs/dfs_cache.c