From 100421844cd068c9ebe20d0965d7d5d848c5a375 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 11 Jun 2012 10:59:23 +0200 Subject: [PATCH] s3: Fix Coverity ID 703871 Unused pointer value Signed-off-by: Jeremy Allison --- source3/modules/vfs_aio_fork.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c index f3e8f7fda17..f68befbf31e 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; -- 2.11.4.GIT