diff options
author | Brian Behlendorf <[email protected]> | 2018-05-01 20:44:24 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2018-05-01 20:44:24 -0700 |
commit | bc8a6a60e9f0fd219e10f355384d87a41d4f5882 (patch) | |
tree | 67615329d59db506d8a5ad5cde6fe28ee2c0d761 /module/zfs/zfs_vnops.c | |
parent | 2c24b5b1487646f68960f25e13a1b0df645d4f49 (diff) |
Fix inst_num overflow in qat_crypt.c
This patch fixes the same issue which was previously addressed in
6051. The variable "inst_num" was of the incorrect type and
"atomic_inc_32_nv()" could cause an overflow damaging its neighbor.
Cast the return value of atomic_inc_32_nv() to Cpa32U.
Fix a few types for num_inst for clarity.
Reviewed-by: Weigang Li <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #7468
Diffstat (limited to 'module/zfs/zfs_vnops.c')
0 files changed, 0 insertions, 0 deletions