crypto/qat: fix array access
authorArek Kusztal <arkadiuszx.kusztal@intel.com>
Mon, 26 Jul 2021 16:47:49 +0000 (17:47 +0100)
committerAkhil Goyal <gakhil@marvell.com>
Fri, 30 Jul 2021 18:57:23 +0000 (20:57 +0200)
commit92a3ea2244a83155ec958aaa45ad40460e3e81d0
tree2ca2908b19ff24355a222aa509dde81f41ea4dbc
parent8cd5064c46386b6fc3113956fa618120524a405b
crypto/qat: fix array access

Fix possible access of an array by negative index in function
qat_sym_qp_setup.

Coverity issue: 372131, 372134
Fixes: 8f393c4ffdc1 ("common/qat: support GEN4 devices")

Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
Acked-by: Adam Dybkowski <adamx.dybkowski@intel.com>
drivers/crypto/qat/qat_sym_pmd.c