]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: aead - Fix corner case in crypto_lookup_aead
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 23 Apr 2015 08:37:46 +0000 (16:37 +0800)
committerDhaval Giani <dhaval.giani@oracle.com>
Mon, 16 Jan 2017 19:43:06 +0000 (14:43 -0500)
commit25e25714c994f4804da135b7ab5cd5cabfd432b7
tree7466af1002a39d9ad00161f9c1c046dfc91c2275
parent239cb8a6ad0d2e904ec620edab12a20a85530f38
crypto: aead - Fix corner case in crypto_lookup_aead

When the user explicitly states that they don't care whether the
algorithm has been tested (type = CRYPTO_ALG_TESTED and mask = 0),
there is a corner case where we may erroneously return ENOENT.

This patch fixes it by correcting the logic in the test.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit 80f7b3552c1c925478a955fd4c700345beaf2982)

Orabug: 24614549

Signed-off-by: Ethan Zhao <ethan.zhao@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
crypto/aead.c