crypto/qat: fix truncated response ring value
authorFiona Trahe <fiona.trahe@intel.com>
Mon, 29 Jan 2018 18:33:40 +0000 (18:33 +0000)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 29 Jan 2018 19:22:33 +0000 (20:22 +0100)
commit3b12d382dbeed892de1bbab4c4c781f0cc43c016
tree139de6c2dd032045a7af353d02a339688c9317fb
parent3c60756c736a4439e3ee75a29cdf5d35fb58c8d3
crypto/qat: fix truncated response ring value

Issue detected by coverity. Could never actually cause a
problem as truncated value (0x7f7f7f7f->0x7f) is what's needed.
But fix in code for correctness.

Coverity issue: 194998
Fixes: 571365dd4c5e ("crypto/qat: enable Rx head writes coalescing")
Cc: stable@dpdk.org
Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
drivers/crypto/qat/qat_adf/adf_transport_access_macros.h
drivers/crypto/qat/qat_crypto.c