crypto/qat: fix session initialization
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 19 Jul 2017 04:59:02 +0000 (05:59 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 19 Jul 2017 14:26:22 +0000 (17:26 +0300)
commitb264a1ab0627614a17005cde39152b749d0a01c3
tree7df591c1172d44b7adbef73f12ae225fea4382b3
parent9189644f8bac43979920f1c5c64900db5736649f
crypto/qat: fix session initialization

When creating a session, if there is a failure when
setting some of the parameters, QAT was not propagating
the error to the session initialization function.
Therefore, it was reporting a success, when it should
be report a failure.

Fixes: b3bbd9e5f265 ("cryptodev: support device independent sessions")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
drivers/crypto/qat/qat_crypto.c
drivers/crypto/qat/qat_crypto.h