aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2021-05-26 15:54:25 +0900
committerNamjae Jeon <namjae.jeon@samsung.com>2021-05-26 18:12:57 +0900
commit533a45da1a8900267a667648450976bc334b71a8 (patch)
treee5127ac9702def3192bbc87ef2b19694b337614e
parentcifsd: change success handling to failure handling (diff)
downloadwireguard-linux-533a45da1a8900267a667648450976bc334b71a8.tar.xz
wireguard-linux-533a45da1a8900267a667648450976bc334b71a8.zip
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 <dan.carpenter@oracle.com> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Steve French <stfrench@microsoft.com>
-rw-r--r--fs/cifsd/crypto_ctx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifsd/crypto_ctx.c b/fs/cifsd/crypto_ctx.c
index 1830ae1b5ed3..dbfe36ee9be1 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))