mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
crypto: essiv - remove redundant null pointer check before kfree
[ Upstream commit e18036da5c23530994faf7243b592e581f1efed2 ]
kfree has taken null pointer check into account. so it is safe to
remove the unnecessary check.
Signed-off-by: Chen Wandun <chenwandun@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Stable-dep-of: b5a772adf45a ("crypto: essiv - Handle EBUSY correctly")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
2d1ac2f2e2
commit
bfef5e3e73
1 changed files with 1 additions and 2 deletions
|
|
@ -188,8 +188,7 @@ static void essiv_aead_done(struct crypto_async_request *areq, int err)
|
|||
struct aead_request *req = areq->data;
|
||||
struct essiv_aead_request_ctx *rctx = aead_request_ctx(req);
|
||||
|
||||
if (rctx->assoc)
|
||||
kfree(rctx->assoc);
|
||||
kfree(rctx->assoc);
|
||||
aead_request_complete(req, err);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue