Skip to content

Commit 263a25d

Browse files
committed
Merge tag 'pull-fixes.ufs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull ufs fix from Al Viro: "Fix ufs_rename() braino introduced this cycle. The 'folio_release_kmap(dir_folio, new_dir)' in ufs_rename() part of folio conversion should've been getting a pointer to ufs directory entry within the page, rather than a pointer to directory struct inode..." * tag 'pull-fixes.ufs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: ufs_rename(): fix bogus argument of folio_release_kmap()
2 parents 3840cbe + 0d0b864 commit 263a25d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ufs/namei.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ static int ufs_rename(struct mnt_idmap *idmap, struct inode *old_dir,
307307
if (old_dir != new_dir)
308308
ufs_set_link(old_inode, dir_de, dir_folio, new_dir, 0);
309309
else
310-
folio_release_kmap(dir_folio, new_dir);
310+
folio_release_kmap(dir_folio, dir_de);
311311
inode_dec_link_count(old_dir);
312312
}
313313
return 0;

0 commit comments

Comments
 (0)