提交 e18036da 编写于 作者: C Chen Wandun 提交者: Herbert Xu

crypto: essiv - remove redundant null pointer check before kfree

kfree has taken null pointer check into account. so it is safe to
remove the unnecessary check.
Signed-off-by: NChen Wandun <chenwandun@huawei.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 57d8154f
...@@ -188,8 +188,7 @@ static void essiv_aead_done(struct crypto_async_request *areq, int err) ...@@ -188,8 +188,7 @@ static void essiv_aead_done(struct crypto_async_request *areq, int err)
struct aead_request *req = areq->data; struct aead_request *req = areq->data;
struct essiv_aead_request_ctx *rctx = aead_request_ctx(req); struct essiv_aead_request_ctx *rctx = aead_request_ctx(req);
if (rctx->assoc) kfree(rctx->assoc);
kfree(rctx->assoc);
aead_request_complete(req, err); aead_request_complete(req, err);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册