crypto/qat: fix buffer overwrite in OOP case
authorFiona Trahe <fiona.trahe@intel.com>
Fri, 9 Dec 2016 15:39:05 +0000 (15:39 +0000)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 18 Jan 2017 20:45:15 +0000 (21:45 +0100)
commit96ec5f904590f6fb2b1c467b9094c4c8fedb8d5a
tree5d0cf0aab8b99268af2e5997fd7c6bbdc52bbcd3
parent53a3ba0c36757cd74bc8411e60aa81c91f679cd3
crypto/qat: fix buffer overwrite in OOP case

In out-of-place operation, data is DMAed from source mbuf
to destination mbuf. To avoid header data in dest mbuf being
overwritten, the minimal data-set should be DMAed.

Fixes: 39e0bee48e81 ("crypto/qat: rework request builder for performance")

Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
Acked-by: John Griffin <john.griffin@intel.com>
drivers/crypto/qat/qat_crypto.c
drivers/crypto/qat/qat_crypto.h