2017-12-05 10:29:42

by Atul Gupta

[permalink] [raw]
Subject: [crypto] chcr: fix a type cast error

fix a type cast error for queue descriptor

Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Atul Gupta <[email protected]>
---
drivers/crypto/chelsio/chcr_ipsec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/chelsio/chcr_ipsec.c b/drivers/crypto/chelsio/chcr_ipsec.c
index f90f991..a413156 100644
--- a/drivers/crypto/chelsio/chcr_ipsec.c
+++ b/drivers/crypto/chelsio/chcr_ipsec.c
@@ -428,7 +428,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 */
--
1.8.3.1


2017-12-22 08:38:18

by Herbert Xu

[permalink] [raw]
Subject: Re: [crypto] chcr: fix a type cast error

Atul Gupta <[email protected]> wrote:
> fix a type cast error for queue descriptor
>
> Reported-by: Dan Carpenter <[email protected]>
> Signed-off-by: Atul Gupta <[email protected]>

Patch applied. Thanks.
--
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt