summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAtul Gupta <atul.gupta@chelsio.com>2017-12-05 15:59:22 +0530
committerHerbert Xu <herbert@gondor.apana.org.au>2017-12-22 19:29:02 +1100
commit209c14bfb3b751a537f4af302730e8d9f24cd9cd (patch)
treecae6122166ff4bc067c75b690bada2fda74b11ca /drivers
parent144f3d18a2300c6a3ab83a2e257699a10404aeb4 (diff)
crypto: chelsio - fix a type cast error
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/crypto/chelsio/chcr_ipsec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/chelsio/chcr_ipsec.c b/drivers/crypto/chelsio/chcr_ipsec.c
index 64a030f8fb21..db1e241104ed 100644
--- a/drivers/crypto/chelsio/chcr_ipsec.c
+++ b/drivers/crypto/chelsio/chcr_ipsec.c
@@ -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 */