Navigation Menu

Skip to content

Commit

Permalink
librt -- aio: lio_listio: Do not dereference NULL sigevp.
Browse files Browse the repository at this point in the history
Reported-by: Z`
  • Loading branch information
Venkatesh Srinivas committed Oct 26, 2011
1 parent cb7575e commit 019e715
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/librt/aio.c
Expand Up @@ -157,7 +157,8 @@ lio_listio(int mode, struct aiocb *const apv[], int nent,
int i;

#ifndef notyet
if ((sigevp->sigev_notify != SIGEV_NONE) &&
if (sigevp &&
(sigevp->sigev_notify != SIGEV_NONE) &&
(sigevp->sigev_notify != SIGEV_THREAD))
return (ENOSYS);
#endif
Expand Down

0 comments on commit 019e715

Please sign in to comment.