diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2020-07-02 05:32:21 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-07-09 10:25:22 +0200 |
commit | 662bb52f50bca16a74fe92b487a14d7dccb85e1a (patch) | |
tree | 6ffd6265d927924b7bd9cb7be1e9e1cdfe21d76e /drivers/crypto/ccp/ccp-dev-v5.c | |
parent | crypto: virtio - constify features[] and id_table[] (diff) | |
download | linux-662bb52f50bca16a74fe92b487a14d7dccb85e1a.tar.xz linux-662bb52f50bca16a74fe92b487a14d7dccb85e1a.zip |
crypto: af_alg - Fix regression on empty requests
Some user-space programs rely on crypto requests that have no
control metadata. This broke when a check was added to require
the presence of control metadata with the ctx->init flag.
This patch fixes the regression by setting ctx->init as long as
one sendmsg(2) has been made, with or without a control message.
Reported-by: Sachin Sant <sachinp@linux.vnet.ibm.com>
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Fixes: f3c802a1f300 ("crypto: algif_aead - Only wake up when...")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccp/ccp-dev-v5.c')
0 files changed, 0 insertions, 0 deletions