diff options
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_aio_fork.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c index f3e8f7fda1..f68befbf31 100644 --- a/source3/modules/vfs_aio_fork.c +++ b/source3/modules/vfs_aio_fork.c @@ -861,6 +861,10 @@ static int aio_fork_suspend(struct vfs_handle_struct *handle, EVENT_FD_READ, handle_aio_completion, child); + if (event == NULL) { + errno = ENOMEM; + goto out; + } child->called_from_suspend = true; |