summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-06-11 10:59:23 +0200
committerJeremy Allison <jra@samba.org>2012-06-11 14:54:37 -0700
commit100421844cd068c9ebe20d0965d7d5d848c5a375 (patch)
tree78bde0361d65bee8fee0154fcd20fca4b3077bfd
parent1b0690fd83dda57d96da3eb5fcd7bc482d1f97d4 (diff)
downloadsamba-100421844cd068c9ebe20d0965d7d5d848c5a375.tar.gz
samba-100421844cd068c9ebe20d0965d7d5d848c5a375.tar.bz2
samba-100421844cd068c9ebe20d0965d7d5d848c5a375.zip
s3: Fix Coverity ID 703871 Unused pointer value
Signed-off-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/modules/vfs_aio_fork.c4
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;