提交 e27303b2 编写于 作者: T Thomas Meyer 提交者: Herbert Xu

crypto: n2 - Fix a get/put_cpu() imbalance

Fix a get/put_cpu() imbalance in the error case when qp == NULL
Signed-off-by: NThomas Meyer <thomas@m3y3r.de>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 66be8951
...@@ -1006,9 +1006,9 @@ static int n2_do_ecb(struct ablkcipher_request *req, bool encrypt) ...@@ -1006,9 +1006,9 @@ static int n2_do_ecb(struct ablkcipher_request *req, bool encrypt)
spin_unlock_irqrestore(&qp->lock, flags); spin_unlock_irqrestore(&qp->lock, flags);
out:
put_cpu(); put_cpu();
out:
n2_chunk_complete(req, NULL); n2_chunk_complete(req, NULL);
return err; return err;
} }
...@@ -1096,9 +1096,9 @@ static int n2_do_chaining(struct ablkcipher_request *req, bool encrypt) ...@@ -1096,9 +1096,9 @@ static int n2_do_chaining(struct ablkcipher_request *req, bool encrypt)
spin_unlock_irqrestore(&qp->lock, flags); spin_unlock_irqrestore(&qp->lock, flags);
out:
put_cpu(); put_cpu();
out:
n2_chunk_complete(req, err ? NULL : final_iv_addr); n2_chunk_complete(req, err ? NULL : final_iv_addr);
return err; return err;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册