diff options
author | Atul Gupta <atul.gupta@chelsio.com> | 2018-05-27 18:45:22 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-05-30 19:13:59 +0300 |
commit | b268b3506d9910ca8238e92cb1dc51340574b2f2 (patch) | |
tree | f3270643fe4ebaf86be3c33f0c9d48b744fd64a8 /drivers/crypto/chelsio | |
parent | 1dfe57aa1441a354f9f1163258795ca05c10d4f8 (diff) | |
download | linux-b268b3506d9910ca8238e92cb1dc51340574b2f2.tar.xz |
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>
Diffstat (limited to 'drivers/crypto/chelsio')
-rw-r--r-- | drivers/crypto/chelsio/chtls/chtls_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/chelsio/chtls/chtls_main.c b/drivers/crypto/chelsio/chtls/chtls_main.c index 273afd3b6537..9b07f9165658 100644 --- a/drivers/crypto/chelsio/chtls/chtls_main.c +++ b/drivers/crypto/chelsio/chtls/chtls_main.c @@ -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: |