summaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorAtul Gupta <atul.gupta@chelsio.com>2017-12-05 11:29:22 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2017-12-22 09:29:02 +0100
commit209c14bfb3b751a537f4af302730e8d9f24cd9cd (patch)
treecae6122166ff4bc067c75b690bada2fda74b11ca /drivers/crypto
parentcrypto: drivers - remove duplicate includes (diff)
downloadlinux-209c14bfb3b751a537f4af302730e8d9f24cd9cd.tar.xz
linux-209c14bfb3b751a537f4af302730e8d9f24cd9cd.zip
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/crypto')
-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 */