]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: lrw - Only add ecb if it is not already there
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 15 May 2025 08:28:08 +0000 (16:28 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 19 May 2025 05:48:20 +0000 (13:48 +0800)
commit3d73909bddc2ebb3224a8bc2e5ce00e9df70c15d
treeb46dbdb5f4c5e6b423a2f04cb207ea204ef5b271
parent18c438b228558e05ede7dccf947a6547516fc0c7
crypto: lrw - Only add ecb if it is not already there

Only add ecb to the cipher name if it isn't already ecb.

Also use memcmp instead of strncmp since these strings are all
stored in an array of length CRYPTO_MAX_ALG_NAME.

Fixes: 700cb3f5fe75 ("crypto: lrw - Convert to skcipher")
Reported-by: kernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202505151503.d8a6cf10-lkp@intel.com
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/lrw.c