diff options
author | Alex Shi <alex.shi@linaro.org> | 2016-03-21 10:08:20 +0800 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2016-03-21 10:08:20 +0800 |
commit | 8cea869f71490e9e08b53e34dec030da2518bb3e (patch) | |
tree | 70f29f8bb38cf5218bac5e64931912ce1a7476cd /include/crypto/if_alg.h | |
parent | 5af6a242945e39bf6ea39716d4eba316b735dce8 (diff) | |
parent | 70e00db9eb8ffc4dcaf5f035ec6a4440ba428794 (diff) |
Merge branch 'linux-linaro-lsk-v3.14' into linux-linaro-lsk-v3.14-androidlsk-v3.14-16.03-androidlinux-linaro-lsk-v3.14-android
Diffstat (limited to 'include/crypto/if_alg.h')
-rw-r--r-- | include/crypto/if_alg.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/crypto/if_alg.h b/include/crypto/if_alg.h index 2f38daaab3d7..d61c11170213 100644 --- a/include/crypto/if_alg.h +++ b/include/crypto/if_alg.h @@ -30,8 +30,6 @@ struct alg_sock { struct sock *parent; - unsigned int refcnt; - const struct af_alg_type *type; void *private; }; @@ -66,7 +64,6 @@ int af_alg_register_type(const struct af_alg_type *type); int af_alg_unregister_type(const struct af_alg_type *type); int af_alg_release(struct socket *sock); -void af_alg_release_parent(struct sock *sk); int af_alg_accept(struct sock *sk, struct socket *newsock); int af_alg_make_sg(struct af_alg_sgl *sgl, void __user *addr, int len, @@ -83,6 +80,11 @@ static inline struct alg_sock *alg_sk(struct sock *sk) return (struct alg_sock *)sk; } +static inline void af_alg_release_parent(struct sock *sk) +{ + sock_put(alg_sk(sk)->parent); +} + static inline void af_alg_init_completion(struct af_alg_completion *completion) { init_completion(&completion->completion); |