lentferj's projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
cb7575e
)
librt -- aio: lio_listio: Do not dereference NULL sigevp.
author
Venkatesh Srinivas <me@endeavour.zapto.org>
Wed, 26 Oct 2011 12:35:59 +0000 (
05:35
-0700)
committer
Venkatesh Srinivas <me@endeavour.zapto.org>
Wed, 26 Oct 2011 12:35:59 +0000 (
05:35
-0700)
Reported-by: Z`
lib/librt/aio.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/librt/aio.c
b/lib/librt/aio.c
index
8c1d19b
..
3823714
100644
(file)
--- a/
lib/librt/aio.c
+++ b/
lib/librt/aio.c
@@
-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