From 4b36051ce195d9ae7ec32bd614d32a023873ab29 Mon Sep 17 00:00:00 2001 From: Raghavendra Talur Date: Mon, 10 Feb 2014 17:11:03 +0530 Subject: io-cache: Unlock and then goto out in failure case. Fix for coverity bug CID:1124625 Change-Id: I76df453a17f2af7c48a80b6fc0ccd411ab96e371 BUG: 789278 Signed-off-by: Raghavendra Talur Reviewed-on: http://review.gluster.org/6949 Reviewed-by: Santosh Pradhan Tested-by: Gluster Build System --- xlators/performance/io-cache/src/io-cache.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators') diff --git a/xlators/performance/io-cache/src/io-cache.c b/xlators/performance/io-cache/src/io-cache.c index 054d28c03..8febfc8fb 100644 --- a/xlators/performance/io-cache/src/io-cache.c +++ b/xlators/performance/io-cache/src/io-cache.c @@ -991,6 +991,7 @@ ioc_dispatch_requests (call_frame_t *frame, ioc_inode_t *ioc_inode, fd_t *fd, "out of memory"); local->op_ret = -1; local->op_errno = ENOMEM; + ioc_inode_unlock (ioc_inode); goto out; } } -- cgit