From fab6944206bf44e2260f20a9d5f1e785f933e705 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Sat, 18 Aug 2018 11:39:03 +0530 Subject: coverity: libglusterfs issues CID: 1391415, 1274122, 1274201, 1382408, 1382437, 1389436 1288798, 1288106, 1288110 updates: bz#789278 Change-Id: I48c7a50f22f5f4580310040c66463d9f7dd26204 Signed-off-by: Amar Tumballi --- libglusterfs/src/syncop.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libglusterfs/src/syncop.c') diff --git a/libglusterfs/src/syncop.c b/libglusterfs/src/syncop.c index 767d2ef6853..8323dd71a10 100644 --- a/libglusterfs/src/syncop.c +++ b/libglusterfs/src/syncop.c @@ -467,6 +467,8 @@ synctask_create (struct syncenv *env, size_t stacksize, synctask_fn_t fn, newtask->frame = frame; if (!frame) { newtask->opframe = create_frame (this, this->ctx->pool); + if (!newtask->opframe) + goto err; set_lk_owner_from_ptr (&newtask->opframe->root->lk_owner, newtask->opframe->root); } else { -- cgit