From: Namjae Jeon Date: Wed, 26 May 2021 06:54:25 +0000 (+0900) Subject: cifsd: add default case in switch statment in alloc_shash_desc() X-Git-Tag: v5.15-rc1~183^2~18^2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=533a45da1a8900267a667648450976bc334b71a8;p=thirdparty%2Fkernel%2Flinux.git cifsd: add default case in switch statment in alloc_shash_desc() Add default case in switch statment in alloc_shash_desc(). Reviewed-by: Dan Carpenter Signed-off-by: Namjae Jeon Signed-off-by: Steve French --- diff --git a/fs/cifsd/crypto_ctx.c b/fs/cifsd/crypto_ctx.c index 1830ae1b5ed34..dbfe36ee9be17 100644 --- a/fs/cifsd/crypto_ctx.c +++ b/fs/cifsd/crypto_ctx.c @@ -88,6 +88,8 @@ static struct shash_desc *alloc_shash_desc(int id) case CRYPTO_SHASH_MD5: tfm = crypto_alloc_shash("md5", 0, 0); break; + default: + return NULL; } if (IS_ERR(tfm))