commit | 4afa5f9617927453ac04b24b584f6c718dfb4f45 | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Sun Nov 01 17:11:19 2015 +0800 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Mon Nov 02 17:48:30 2015 +0800 |
tree | c2304ce35cb7d2bec45f3f257c4194ab2278b3a9 | |
parent | 271817a3e92c0455bda5856d87eca244ad67d3a2 [diff] |
crypto: algif_hash - Only export and import on sockets with data The hash_accept call fails to work on sockets that have not received any data. For some algorithm implementations it may cause crashes. This patch fixes this by ensuring that we only export and import on sockets that have received data. Cc: stable@vger.kernel.org Reported-by: Harsh Jain <harshjain.prof@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Tested-by: Stephan Mueller <smueller@chronox.de>