crypto: chelsio - fix a type cast error
authorAtul Gupta <atul.gupta@chelsio.com>
Tue, 5 Dec 2017 10:29:22 +0000 (15:59 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Dec 2017 08:29:02 +0000 (19:29 +1100)
fix a type cast error for queue descriptor

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Atul Gupta <atul.gupta@chelsio.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/chelsio/chcr_ipsec.c

index 64a030f..db1e241 100644 (file)
@@ -423,7 +423,7 @@ inline void *copy_key_cpltx_pktxt(struct sk_buff *skb,
                        memcpy(pos, sa_entry->key, left);
                        memcpy(q->q.desc, sa_entry->key + left,
                               key_len - left);
-                       pos = q->q.desc + (key_len - left);
+                       pos = (u8 *)q->q.desc + (key_len - left);
                }
        }
        /* Copy CPL TX PKT XT */