crypto: chtls: free beyond end rspq_skb_cache
authorAtul Gupta <[email protected]>
Sun, 27 May 2018 15:45:22 +0000 (21:15 +0530)
committerDavid S. Miller <[email protected]>
Tue, 29 May 2018 14:14:39 +0000 (10:14 -0400)
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Atul Gupta <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/crypto/chelsio/chtls/chtls_main.c

index f3eafbde2ffca02b2397836f7f9e43c7e956fbd7..1a6cbb2a915ee08761c218f16c32f7a5bfbf5e43 100644 (file)
@@ -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: