Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Reported-by: Naresh Kamboju <[email protected]> Fixes: f3c802a ("crypto: algif_aead - Only wake up when...") Signed-off-by: Herbert Xu <[email protected]>
- Loading branch information