aboutsummaryrefslogtreecommitdiffstats
path: root/module/icp/core
diff options
context:
space:
mode:
authorcao <[email protected]>2016-10-14 05:30:50 +0800
committerBrian Behlendorf <[email protected]>2016-10-13 14:30:50 -0700
commit3f93077b024d6e7658e655d3b897bcd3bb57504f (patch)
tree8367e4c43a1f73676a50a005b80fe9d84bdd6481 /module/icp/core
parent05852b3467b44cdf88541ec67624cd1f5f2ded1d (diff)
Fix coverity defects: CID 150943, 150938
CID:150943, Type:Unintentional integer overflow CID:150938, Type:Explicit null dereferenced Reviewed-by: Tom Caputi <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: cao.xuewen <[email protected]> Closes #5255
Diffstat (limited to 'module/icp/core')
-rw-r--r--module/icp/core/kcf_sched.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/icp/core/kcf_sched.c b/module/icp/core/kcf_sched.c
index 7046495f4..3b4cce4b5 100644
--- a/module/icp/core/kcf_sched.c
+++ b/module/icp/core/kcf_sched.c
@@ -1740,8 +1740,10 @@ kcf_last_req(void *last_req_arg, int status)
ct = (crypto_dual_data_t *)dcrops->dop_ciphertext;
break;
}
- default:
- break;
+ default: {
+ panic("invalid kcf_op_group_t %d", (int)params->rp_opgrp);
+ return;
+ }
}
ct->dd_offset1 = last_req->kr_saveoffset;
ct->dd_len1 = last_req->kr_savelen;