Skip to content

Commit 92936d5

Browse files
herbertxgregkh
authored andcommitted
crypto: iaa - Test the correct request flag
[ Upstream commit fc4bd01 ] Test the correct flags for the MAY_SLEEP bit. Fixes: 2ec6761 ("crypto: iaa - Add support for deflate-iaa compression algorithm") Signed-off-by: Herbert Xu <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 238ece4 commit 92936d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/crypto/intel/iaa/iaa_crypto_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,7 @@ static int iaa_comp_acompress(struct acomp_req *req)
15271527
iaa_wq = idxd_wq_get_private(wq);
15281528

15291529
if (!req->dst) {
1530-
gfp_t flags = req->flags & CRYPTO_TFM_REQ_MAY_SLEEP ? GFP_KERNEL : GFP_ATOMIC;
1530+
gfp_t flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP ? GFP_KERNEL : GFP_ATOMIC;
15311531

15321532
/* incompressible data will always be < 2 * slen */
15331533
req->dlen = 2 * req->slen;
@@ -1609,7 +1609,7 @@ static int iaa_comp_acompress(struct acomp_req *req)
16091609

16101610
static int iaa_comp_adecompress_alloc_dest(struct acomp_req *req)
16111611
{
1612-
gfp_t flags = req->flags & CRYPTO_TFM_REQ_MAY_SLEEP ?
1612+
gfp_t flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP ?
16131613
GFP_KERNEL : GFP_ATOMIC;
16141614
struct crypto_tfm *tfm = req->base.tfm;
16151615
dma_addr_t src_addr, dst_addr;

0 commit comments

Comments
 (0)