]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
crypto: chcr - Fix wrong typecasting
authorHarsh Jain <harsh@chelsio.com>
Fri, 27 Jan 2017 10:39:11 +0000 (16:09 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Feb 2017 10:16:16 +0000 (18:16 +0800)
Typecast the pointer with correct structure.

Signed-off-by: Atul Gupta <atul.gupta@chelsio.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/chelsio/chcr_core.c

index 2bfd61ae5ad594b1c5f01b096d443ac636639c7a..c28e018e0773bf1fa127ed7372f566cab66233c5 100644 (file)
@@ -151,18 +151,17 @@ int chcr_uld_rx_handler(void *handle, const __be64 *rsp,
 {
        struct uld_ctx *u_ctx = (struct uld_ctx *)handle;
        struct chcr_dev *dev = u_ctx->dev;
-       const struct cpl_act_establish *rpl = (struct cpl_act_establish
-                                              *)rsp;
+       const struct cpl_fw6_pld *rpl = (struct cpl_fw6_pld *)rsp;
 
-       if (rpl->ot.opcode != CPL_FW6_PLD) {
+       if (rpl->opcode != CPL_FW6_PLD) {
                pr_err("Unsupported opcode\n");
                return 0;
        }
 
        if (!pgl)
-               work_handlers[rpl->ot.opcode](dev, (unsigned char *)&rsp[1]);
+               work_handlers[rpl->opcode](dev, (unsigned char *)&rsp[1]);
        else
-               work_handlers[rpl->ot.opcode](dev, pgl->va);
+               work_handlers[rpl->opcode](dev, pgl->va);
        return 0;
 }