mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-21 18:26:47 +03:00
Fix coverity defects: CID 150943, 150938
CID:150943, Type:Unintentional integer overflow CID:150938, Type:Explicit null dereferenced Reviewed-by: Tom Caputi <tcaputi@datto.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: cao.xuewen <cao.xuewen@zte.com.cn> Closes #5255
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user