fs: Call RELEASE_SEARCH to free resource in pseudorename

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2020-09-16 02:54:44 +08:00 committed by Brennan Ashton
parent 59fbd35609
commit 1e848e5d8b

View File

@ -173,6 +173,7 @@ next_subdir:
* over again. A nasty goto is used because I am lazy.
*/
RELEASE_SEARCH(&newdesc);
goto next_subdir;
}
else
@ -265,6 +266,8 @@ errout_with_sem:
inode_semgive();
errout:
RELEASE_SEARCH(&newdesc);
if (subdir != NULL)
{
kmm_free(subdir);