crypto/qat: fix crash in session create
authorArek Kusztal <arkadiuszx.kusztal@intel.com>
Wed, 29 Mar 2017 10:31:46 +0000 (11:31 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 5 Apr 2017 22:17:44 +0000 (00:17 +0200)
commitd099195ae7e0a64aaeba6fed290536f403dd5fe0
tree8625f2b43f0a2f1d570343c3c27bd6d15a5b766b
parenta23f74fb7e10b28f411c5c732f2685f2167b4957
crypto/qat: fix crash in session create

This patch fixes segementation fault that may occur in case
of wrong parameters being provided to the cryptographic
session. Unused fields which would cause null dereference
are removed.

Fixes: 1703e94ac5ce ("qat: add driver for QuickAssist devices")

Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
drivers/crypto/qat/qat_crypto.c
drivers/crypto/qat/qat_crypto.h