aboutsummaryrefslogtreecommitdiff
path: root/include/crypto/if_alg.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2016-10-27 17:29:42 +0300
committerMister Oyster <oysterized@gmail.com>2017-04-11 10:59:02 +0200
commit1aed82a1d790b2b352f33760b22d7903ecd889e6 (patch)
tree7e11682326ef7967cf41a86aac0bf794110b5e0f /include/crypto/if_alg.h
parente7a997d0e4a5c5e6e395f56532c46d8e16ed9984 (diff)
crypto: af_alg - Allow af_af_alg_release_parent to be called on nokey path
commit 6a935170a980024dd29199e9dbb5c4da4767a1b9 upstream. This patch allows af_alg_release_parent to be called even for nokey sockets. Cc: stable@vger.kernel.org Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'include/crypto/if_alg.h')
-rw-r--r--include/crypto/if_alg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/crypto/if_alg.h b/include/crypto/if_alg.h
index 9e6a2f38c..bfefd8139 100644
--- a/include/crypto/if_alg.h
+++ b/include/crypto/if_alg.h
@@ -31,6 +31,7 @@ struct alg_sock {
struct sock *parent;
unsigned int refcnt;
+ unsigned int nokey_refcnt;
const struct af_alg_type *type;
void *private;