1
0
Fork 0

crypto: chtls - free beyond end rspq_skb_cache

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>
hifive-unleashed-5.1
Atul Gupta 2018-05-27 21:15:22 +05:30 committed by Herbert Xu
parent 1dfe57aa14
commit b268b3506d
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ static void *chtls_uld_add(const struct cxgb4_lld_info *info)
return cdev;
out_rspq_skb:
for (j = 0; j <= i; j++)
for (j = 0; j < i; j++)
kfree_skb(cdev->rspq_skb_cache[j]);
kfree_skb(cdev->askb);
out_skb: