crypto/qat: verify session IOVA
authorAdam Dybkowski <adamx.dybkowski@intel.com>
Mon, 8 Jun 2020 13:15:03 +0000 (15:15 +0200)
committerAkhil Goyal <akhil.goyal@nxp.com>
Tue, 7 Jul 2020 22:15:35 +0000 (00:15 +0200)
commitb9e3ac6964742e3a028e7a0bdca9e27f68cef4f9
tree2cd4db54ddbfcc4238228012495240fbdc724ca1
parent53bf0ffd51c0b378246aac74308cc0ceaf075f83
crypto/qat: verify session IOVA

This patch adds the verification of the crypto session IOVA
that should be known (not zero) to proceed with the
session initialisation. In case of unknown IOVA
the error code -EINVAL is returned.

Signed-off-by: Adam Dybkowski <adamx.dybkowski@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
drivers/crypto/qat/qat_sym_session.c