projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
144f3d1
)
crypto: chelsio - fix a type cast error
author
Atul Gupta
<atul.gupta@chelsio.com>
Tue, 5 Dec 2017 10:29:22 +0000
(15:59 +0530)
committer
Herbert 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
patch
|
blob
|
history
diff --git
a/drivers/crypto/chelsio/chcr_ipsec.c
b/drivers/crypto/chelsio/chcr_ipsec.c
index
64a030f
..
db1e241
100644
(file)
--- 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 */