mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-01 17:00:36 +00:00
o In aio_cancel(2), make sure that p->p_aioinfo isn't NULL before
dereferencing it. Submitted by: saureen <sshah@apple.com>
This commit is contained in:
parent
d8d737d751
commit
b6c1f1efa2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101663
@ -1775,6 +1775,8 @@ aio_cancel(struct thread *td, struct aio_cancel_args *uap)
|
||||
}
|
||||
}
|
||||
ki=p->p_aioinfo;
|
||||
if (ki == NULL)
|
||||
return (EINVAL);
|
||||
s = splnet();
|
||||
|
||||
for (cbe = TAILQ_FIRST(&ki->kaio_jobqueue); cbe; cbe = cbn) {
|
||||
|
Loading…
Reference in New Issue
Block a user