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: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
82a1052679
commit
06c14de5a2
|
@ -251,7 +251,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:
|
||||
|
|
Loading…
Reference in New Issue