Ignore:
Timestamp:
Apr 21, 2017, 4:28:29 AM (5 weeks ago)
Author:
brainslayer
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.9/crypto/algif_aead.c

    r31574 r31885  
    4040        struct list_head list;
    4141        struct kiocb *iocb;
     42        struct sock *sk;
    4243        unsigned int tsgls;
    4344        char iv[];
     
    380381static void aead_async_cb(struct crypto_async_request *_req, int err)
    381382{
    382         struct sock *sk = _req->data;
    383         struct alg_sock *ask = alg_sk(sk);
    384         struct aead_ctx *ctx = ask->private;
    385         struct crypto_aead *tfm = crypto_aead_reqtfm(&ctx->aead_req);
    386         struct aead_request *req = aead_request_cast(_req);
     383        struct aead_request *req = _req->data;
     384        struct crypto_aead *tfm = crypto_aead_reqtfm(req);
    387385        struct aead_async_req *areq = GET_ASYM_REQ(req, tfm);
     386        struct sock *sk = areq->sk;
    388387        struct scatterlist *sg = areq->tsgl;
    389388        struct aead_async_rsgl *rsgl;
     
    448447        INIT_LIST_HEAD(&areq->list);
    449448        areq->iocb = msg->msg_iocb;
     449        areq->sk = sk;
    450450        memcpy(areq->iv, ctx->iv, crypto_aead_ivsize(tfm));
    451451        aead_request_set_tfm(req, tfm);
    452452        aead_request_set_ad(req, ctx->aead_assoclen);
    453453        aead_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG,
    454                                   aead_async_cb, sk);
     454                                  aead_async_cb, req);
    455455        used -= ctx->aead_assoclen;
    456456
Note: See TracChangeset for help on using the changeset viewer.