From 100421844cd068c9ebe20d0965d7d5d848c5a375 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 11 Jun 2012 10:59:23 +0200 Subject: 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(+) (limited to 'source3/modules/vfs_aio_fork.c') 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; -- cgit