mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 15:50:59 +07:00
crypto: n2 - Fix a get/put_cpu() imbalance
Fix a get/put_cpu() imbalance in the error case when qp == NULL Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
66be895158
commit
e27303b256
@ -1006,9 +1006,9 @@ static int n2_do_ecb(struct ablkcipher_request *req, bool encrypt)
|
||||
|
||||
spin_unlock_irqrestore(&qp->lock, flags);
|
||||
|
||||
out:
|
||||
put_cpu();
|
||||
|
||||
out:
|
||||
n2_chunk_complete(req, NULL);
|
||||
return err;
|
||||
}
|
||||
@ -1096,9 +1096,9 @@ static int n2_do_chaining(struct ablkcipher_request *req, bool encrypt)
|
||||
|
||||
spin_unlock_irqrestore(&qp->lock, flags);
|
||||
|
||||
out:
|
||||
put_cpu();
|
||||
|
||||
out:
|
||||
n2_chunk_complete(req, err ? NULL : final_iv_addr);
|
||||
return err;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user