projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73b8b08
)
cifsd: add default case in switch statment in alloc_shash_desc()
author
Namjae Jeon
<namjae.jeon@samsung.com>
Wed, 26 May 2021 06:54:25 +0000
(15:54 +0900)
committer
Namjae Jeon
<namjae.jeon@samsung.com>
Wed, 26 May 2021 09:12:57 +0000
(18:12 +0900)
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>
fs/cifsd/crypto_ctx.c
patch
|
blob
|
history
diff --git
a/fs/cifsd/crypto_ctx.c
b/fs/cifsd/crypto_ctx.c
index
1830ae1
..
dbfe36e
100644
(file)
--- 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))