diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2017-07-10 22:00:48 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-07-12 18:38:06 +0800 |
commit | 0b4da47d29fbe9913d9a33f01f3db65561d73d24 (patch) | |
tree | 888900c39189824fbc2b6c6eeb98d471d9d12764 /crypto/crypto_wq.c | |
parent | 57cf4e9e5232e3706cc4894ba1706eb3e7352e14 (diff) | |
download | linux-crypto-0b4da47d29fbe9913d9a33f01f3db65561d73d24.tar.gz linux-crypto-0b4da47d29fbe9913d9a33f01f3db65561d73d24.zip |
Networking
crypto: af_alg - Avoid sock_graft call warning
The newly added sock_graft warning triggers in af_alg_accept.
It's harmless as we're essentially doing sock->sk = sock->sk.
The sock_graft call is actually redundant because all the work
it does is subsumed by sock_init_data. However, it was added
to placate SELinux as it uses it to initialise its internal state.
This patch avoisd the warning by making the SELinux call directly.
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto/crypto_wq.c')
0 files changed, 0 insertions, 0 deletions