mirror of
https://github.com/opnsense/src.git
synced 2026-06-06 15:22:34 -04:00
ufs_vnops.c: use unsigned type for newparent inode number in ufs_rename()
Otherwise it is sign-extended into 64bit ino_t on the call to ufs_dirrewrite(). This causes invalid inode number recorded in the SU tracking structures (newdirem) and triggers corresponding panics. Reviewed by: mckusick, olce Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D51573
This commit is contained in:
parent
9a6ba186e0
commit
c069ca085b
1 changed files with 2 additions and 1 deletions
|
|
@ -1268,7 +1268,8 @@ ufs_rename(
|
|||
struct inode *fip, *tip, *tdp, *fdp;
|
||||
struct direct newdir;
|
||||
off_t endoff;
|
||||
int doingdirectory, newparent;
|
||||
int doingdirectory;
|
||||
u_int newparent;
|
||||
int error = 0;
|
||||
struct mount *mp;
|
||||
ino_t ino;
|
||||
|
|
|
|||
Loading…
Reference in a new issue