[dpdk-dev] [PATCH] common/qat: fix for invalid response from firmware

Kusztal, ArkadiuszX arkadiuszx.kusztal at intel.com
Wed Oct 24 17:11:45 CEST 2018



> -----Original Message-----
> From: Trahe, Fiona
> Sent: Wednesday, October 24, 2018 1:40 AM
> To: dev at dpdk.org
> Cc: akhil.goyal at nxp.com; Jozwiak, TomaszX <tomaszx.jozwiak at intel.com>;
> Kusztal, ArkadiuszX <arkadiuszx.kusztal at intel.com>; Cel, TomaszX
> <tomaszx.cel at intel.com>; Trahe, Fiona <fiona.trahe at intel.com>;
> stable at dpdk.org
> Subject: [PATCH] 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 at dpdk.org
> 
> Signed-off-by: Fiona Trahe <fiona.trahe at intel.com>
> ---
>  drivers/common/qat/qat_qp.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/drivers/common/qat/qat_qp.c b/drivers/common/qat/qat_qp.c
> index 1d83aac..9c58c64 100644
> --- a/drivers/common/qat/qat_qp.c
> +++ b/drivers/common/qat/qat_qp.c
> --
> 2.7.4


Acked-by: Arek Kusztal <arkadiuszx.kusztal at intel.com>


More information about the dev mailing list