aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2019-05-02 22:14:21 -0400
committerDavid S. Miller <davem@davemloft.net>2019-05-02 22:14:21 -0400
commitff24e4980a68d83090a02fda081741a410fe8eef (patch)
tree4d874dfcaf2bb8c3abc2446af9447a983402c0ae /crypto
parent26f146ed971c0e4a264ce525d7a66a71ef73690d (diff)
parentea9866793d1e925b4d320eaea409263b2a568f38 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Three trivial overlapping conflicts. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/lrw.c6
-rw-r--r--crypto/xts.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/crypto/lrw.c b/crypto/lrw.c
index 0430ccd08728..08a0e458bc3e 100644
--- a/crypto/lrw.c
+++ b/crypto/lrw.c
@@ -212,8 +212,12 @@ static void crypt_done(struct crypto_async_request *areq, int err)
212{ 212{
213 struct skcipher_request *req = areq->data; 213 struct skcipher_request *req = areq->data;
214 214
215 if (!err) 215 if (!err) {
216 struct rctx *rctx = skcipher_request_ctx(req);
217
218 rctx->subreq.base.flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP;
216 err = xor_tweak_post(req); 219 err = xor_tweak_post(req);
220 }
217 221
218 skcipher_request_complete(req, err); 222 skcipher_request_complete(req, err);
219} 223}
diff --git a/crypto/xts.c b/crypto/xts.c
index 847f54f76789..2f948328cabb 100644
--- a/crypto/xts.c
+++ b/crypto/xts.c
@@ -137,8 +137,12 @@ static void crypt_done(struct crypto_async_request *areq, int err)
137{ 137{
138 struct skcipher_request *req = areq->data; 138 struct skcipher_request *req = areq->data;
139 139
140 if (!err) 140 if (!err) {
141 struct rctx *rctx = skcipher_request_ctx(req);
142
143 rctx->subreq.base.flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP;
141 err = xor_tweak_post(req); 144 err = xor_tweak_post(req);
145 }
142 146
143 skcipher_request_complete(req, err); 147 skcipher_request_complete(req, err);
144} 148}