common/qat: fix for invalid response from firmware
authorFiona Trahe <fiona.trahe@intel.com>
Tue, 23 Oct 2018 23:39:42 +0000 (00:39 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 27 Oct 2018 00:13:29 +0000 (02:13 +0200)
commitd09973f6c4dff9715304ef979c1b0d72aa365193
tree8d1e312e6cc37ca4acd6656fa12782b93bd648ac
parenta124830a6f00cf767372f98542449b7470f3dfab
common/qat: fix for invalid response from firmware

Check that the firmware response has a bit set indicating
it's valid before dereferencing the rest of the response contents.

Fixes: 0bdd36e12245 ("crypto/qat: make dequeue function generic")
Cc: stable@dpdk.org
Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
Acked-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
drivers/common/qat/qat_qp.c