diff options
author | Atul Gupta <atul.gupta@chelsio.com> | 2018-05-27 17:45:22 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-05-30 18:13:59 +0200 |
commit | b268b3506d9910ca8238e92cb1dc51340574b2f2 (patch) | |
tree | f3270643fe4ebaf86be3c33f0c9d48b744fd64a8 /drivers/crypto | |
parent | crypto: chtls - kbuild warnings (diff) | |
download | linux-b268b3506d9910ca8238e92cb1dc51340574b2f2.tar.xz linux-b268b3506d9910ca8238e92cb1dc51340574b2f2.zip |
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')
-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: |