Commit 06c14de5 authored by Atul Gupta's avatar Atul Gupta Committed by David S. Miller

crypto: chtls: free beyond end rspq_skb_cache

Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarAtul Gupta <atul.gupta@chelsio.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 82a10526
...@@ -251,7 +251,7 @@ static void *chtls_uld_add(const struct cxgb4_lld_info *info) ...@@ -251,7 +251,7 @@ static void *chtls_uld_add(const struct cxgb4_lld_info *info)
return cdev; return cdev;
out_rspq_skb: 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->rspq_skb_cache[j]);
kfree_skb(cdev->askb); kfree_skb(cdev->askb);
out_skb: out_skb:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment