提交 209c14bf 编写于 作者: A Atul Gupta 提交者: Herbert Xu

crypto: chelsio - fix a type cast error

fix a type cast error for queue descriptor
Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NAtul Gupta <atul.gupta@chelsio.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 144f3d18
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册