dfs_cache: fix a wrong use of kfree in flush_cache_ent()
authorGen Zhang <blackgod016574@gmail.com>
Tue, 28 May 2019 01:12:39 +0000 (09:12 +0800)
committerSteve French <stfrench@microsoft.com>
Wed, 29 May 2019 00:13:58 +0000 (19:13 -0500)
commit50fbc13dc12666f3604dc2555a47fc8c4e29162b
treeb8bfab343386e7c7d3f096269d2eeab7620e8afd
parent6457c20e336867fc90286d35bddcc9c0b0aaa936
dfs_cache: fix a wrong use of kfree in flush_cache_ent()

In flush_cache_ent(), 'ce->ce_path' is allocated by kstrdup_const().
It should be freed by kfree_const(), rather than kfree().

Signed-off-by: Gen Zhang <blackgod016574@gmail.com>
Reviewed-by: Paulo Alcantara <palcantara@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/dfs_cache.c