crypto/qat: fix out-of-bounds access
authorTomasz Jozwiak <tomaszx.jozwiak@intel.com>
Mon, 22 Jan 2018 16:28:03 +0000 (17:28 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 29 Jan 2018 19:22:33 +0000 (20:22 +0100)
commit8aa8ee9d2d87ba1a0560cfdbe936c3fd7c5dc12b
tree0fdf000d12ce632a52eff929bdc2098e978d5663
parenta74af788c6324d4b2284d55b282b4aa3522e3135
crypto/qat: fix out-of-bounds access

This commit fixes
  - bpi_cipher_encrypt to prevent before 'array subscript is
    above array bounds' error
  - bpi_cipher_decrypt to prevent before 'array subscript is
    above array bounds' error

Fixes: d18ab45f7654 ("crypto/qat: support DOCSIS BPI mode")
Cc: stable@dpdk.org
Signed-off-by: Tomasz Jozwiak <tomaszx.jozwiak@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
drivers/crypto/qat/qat_crypto.c