Skip to content

Commit

Permalink
Change variable "inst_num" U32 due atomic_inc_32_nv
Browse files Browse the repository at this point in the history
After run a long time with QAT compression, the variable "inst_num"
is overflow by "atomic_inc_32_nv", which causes its neighbor
variable overwritten. Change its definition from U16 to U32.

Signed-off-by: Weigang Li <[email protected]>
  • Loading branch information
wli5 committed Apr 21, 2017
1 parent 038091f commit 7b857ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zfs/qat_compress.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static CpaInstanceHandle dc_inst_handles[MAX_INSTANCES];
static CpaDcSessionHandle session_handles[MAX_INSTANCES];
static CpaBufferList **buffer_array[MAX_INSTANCES];
static Cpa16U num_inst = 0;
static Cpa16U inst_num = 0;
static Cpa32U inst_num = 0;
static boolean_t qat_init_done = B_FALSE;
int zfs_qat_disable = 0;

Expand Down

0 comments on commit 7b857ac

Please sign in to comment.