mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 21:44:23 -04:00
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>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user