Commit ce212d2
committed
crypto: n2 - Set err to EINVAL if snprintf fails for hmac
Return EINVAL if the snprintf check fails when constructing the
algorithm names.
Fixes: 8c20982 ("crypto: n2 - Silence gcc format-truncation false positive warnings")
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]/
Signed-off-by: Herbert Xu <[email protected]>1 parent e2b19a4 commit ce212d2
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1353 | 1353 | | |
1354 | 1354 | | |
1355 | 1355 | | |
| 1356 | + | |
1356 | 1357 | | |
1357 | 1358 | | |
1358 | 1359 | | |
| |||
0 commit comments