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
@ -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…
x
Reference in New Issue
Block a user