mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
In the 'found' case for ufs_lookup() the underlying bp's data was
being accessed after the bp had been releaed. A simple move of the
brelse() solves the problem.
Approved by: jkh
Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
This commit is contained in:
parent
cd7b8d78c7
commit
b39d4d2060
1 changed files with 1 additions and 1 deletions
|
|
@ -313,7 +313,6 @@ searchloop:
|
|||
}
|
||||
dp->i_ino = ep->d_ino;
|
||||
dp->i_reclen = ep->d_reclen;
|
||||
brelse(bp);
|
||||
goto found;
|
||||
}
|
||||
}
|
||||
|
|
@ -417,6 +416,7 @@ found:
|
|||
dp->i_size = entryoffsetinblock + DIRSIZ(OFSFMT(vdp), ep);
|
||||
dp->i_flag |= IN_CHANGE | IN_UPDATE;
|
||||
}
|
||||
brelse(bp);
|
||||
|
||||
/*
|
||||
* Found component in pathname.
|
||||
|
|
|
|||
Loading…
Reference in a new issue