ufs: Pass the new parent inode number to ufs_dirrewrite()

Despite the name, isrmdir is not a boolean-valued, it is also used to
pass a new parent inode number down to the SU layer.

Fixes:		98eb6f0eaa ("ufs: restore conditional")
Reviewed by:	kib
Reported by:	syzbot+fbfff9613b6dab616124@syzkaller.appspotmail.com
Reported by:	syzbot+02cb048d48b51bcd9c41@syzkaller.appspotmail.com
Reported by:	syzbot+98c39c45a437812f7683@syzkaller.appspotmail.com
Reported by:	syzbot+6fb8cb919cc686d1a1d0@syzkaller.appspotmail.com
Reported by:	syzbot+fb35cce6a6f5075a6692@syzkaller.appspotmail.com
Reported by:	syzbot+602fb6ee1a39abfd3b5c@syzkaller.appspotmail.com
Reported by:	syzbot+5cb82352555d5d505640@syzkaller.appspotmail.com
Reported by:	syzbot+6a4ea1e13f4e07369785@syzkaller.appspotmail.com
Reported by:	syzbot+18722c8e4008048efb51@syzkaller.appspotmail.com
This commit is contained in:
Mark Johnston 2025-07-29 13:56:48 +00:00
parent f1f77adfd9
commit 2bc355c018

View file

@ -1643,7 +1643,7 @@ relock:
}
error = ufs_dirrewrite(tdp, tip, fip->i_number,
IFTODT(fip->i_mode), (doingdirectory && newparent != 0) ?
newparent != 0: doingdirectory);
newparent : doingdirectory);
if (error) {
if (doingdirectory) {
if (newparent == 0) {