mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
f2fs: release new entry page correctly in error path of f2fs_rename
This patch correct releasing code of new_page to avoid BUG_ON in error patch of f2fs_rename. Signed-off-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
This commit is contained in:
parent
90d72459cc
commit
dd4d961fe7
1 changed files with 2 additions and 1 deletions
|
|
@ -474,7 +474,8 @@ static int f2fs_rename(struct inode *old_dir, struct dentry *old_dentry,
|
|||
return 0;
|
||||
|
||||
put_out_dir:
|
||||
f2fs_put_page(new_page, 1);
|
||||
kunmap(new_page);
|
||||
f2fs_put_page(new_page, 0);
|
||||
out_dir:
|
||||
if (old_dir_entry) {
|
||||
kunmap(old_dir_page);
|
||||
|
|
|
|||
Loading…
Reference in a new issue