summaryrefslogtreecommitdiffstats
path: root/xlators/performance
diff options
context:
space:
mode:
authorBhumika Goyal <bgoyal@redhat.com>2018-10-18 17:30:09 +0530
committerAmar Tumballi <amarts@redhat.com>2018-10-22 04:35:05 +0000
commit92c22abb440ba8f8025441b16f3811b05927a16d (patch)
treedbc6e8413be289b35657c0296976ad0493ff57cc /xlators/performance
parentac9976f0c52306f4f2d9b11dcf6a830d1ec2e445 (diff)
xlators: some high severity coverity fixes
Fixes: 124759 1288787 Change-Id: Ib8999242fc3ea5f4ea80246659899d2d4f06c506 updates: bz#789278 Signed-off-by: Bhumika Goyal <bgoyal@redhat.com>
Diffstat (limited to 'xlators/performance')
-rw-r--r--xlators/performance/io-threads/src/io-threads.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/performance/io-threads/src/io-threads.c b/xlators/performance/io-threads/src/io-threads.c
index c98d1f6ada4..7f1a34676d9 100644
--- a/xlators/performance/io-threads/src/io-threads.c
+++ b/xlators/performance/io-threads/src/io-threads.c
@@ -1209,6 +1209,8 @@ init(xlator_t *this)
if (ret != 0)
goto out;
+ ret = -1;
+
GF_OPTION_INIT("thread-count", conf->max_count, int32, out);
GF_OPTION_INIT("high-prio-threads", conf->ac_iot_limit[GF_FOP_PRI_HI],