X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=crypto%2Falgif_skcipher.c;h=45fa6bd9187bfe1bac60297a136663235c6d55a7;hb=420ffc05b764c1b584591eb38da4004611077b72;hp=da5d4ed238e224d87f76c7e44ec0af4a8432bbb9;hpb=c54ddfbb1b691d77c52b76ca6e13ca7082eb3b82;p=pandora-kernel.git diff --git a/crypto/algif_skcipher.c b/crypto/algif_skcipher.c index da5d4ed238e2..45fa6bd9187b 100644 --- a/crypto/algif_skcipher.c +++ b/crypto/algif_skcipher.c @@ -249,11 +249,8 @@ static int skcipher_sendmsg(struct kiocb *unused, struct socket *sock, { struct sock *sk = sock->sk; struct alg_sock *ask = alg_sk(sk); - struct sock *psk = ask->parent; - struct alg_sock *pask = alg_sk(psk); struct skcipher_ctx *ctx = ask->private; - struct ablkcipher_tfm *skc = pask->private; - struct crypto_ablkcipher *tfm = skc->base; + struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(&ctx->req); unsigned ivsize = crypto_ablkcipher_ivsize(tfm); struct skcipher_sg_list *sgl; struct af_alg_control con = {};