error-gen, locks: Fix a typo in comments

s/coverty/coverity/

Change-Id: Iac7c13176162eace4247dd3236373aa76d906380
updates: bz#789278
Signed-off-by: Vijay Bellur <vbellur@redhat.com>
This commit is contained in:
Vijay Bellur 2018-08-13 13:06:20 -07:00 committed by Amar Tumballi
parent e4015ece28
commit 32c8f70f49
2 changed files with 3 additions and 3 deletions

View File

@ -195,7 +195,7 @@ generate_rand_no (int op_no)
int rand_no = 0;
if (op_no < GF_FOP_MAXVALUE)
/* coverty[DC.WEAK_CRYPTO] */
/* coverity[DC.WEAK_CRYPTO] */
rand_no = rand () % error_no_list[op_no].error_no_count;
return rand_no;
}
@ -284,7 +284,7 @@ error_gen (xlator_t *this, int op_no)
error_no_int = egp->error_no_int;
if ((count % egp->failure_iter_no) == 0) {
egp->op_count = 0;
/* coverty[DC.WEAK_CRYPTO] */
/* coverity[DC.WEAK_CRYPTO] */
egp->failure_iter_no = 3
+ (rand () % GF_UNIVERSAL_ANSWER);
should_err = _gf_true;

View File

@ -1105,7 +1105,7 @@ pl_does_monkey_want_stuck_lock()
long int monkey_unlock_rand = 0;
long int monkey_unlock_rand_rem = 0;
/* coverty[DC.WEAK_CRYPTO] */
/* coverity[DC.WEAK_CRYPTO] */
monkey_unlock_rand = random ();
monkey_unlock_rand_rem = monkey_unlock_rand % 100;
if (monkey_unlock_rand_rem == 0)