s3: Fix Coverity ID 703871 Unused pointer value
authorVolker Lendecke <vl@samba.org>
Mon, 11 Jun 2012 08:59:23 +0000 (10:59 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 11 Jun 2012 21:54:37 +0000 (14:54 -0700)
Signed-off-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_aio_fork.c

index f3e8f7fda173422985a08ecaa40c09c9dab4f160..f68befbf31e4d6d83b2a261fb512dc314c8f2c11 100644 (file)
@@ -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;