Commit 19630cf
crypto: bcm - add error check in the ahash_hmac_init function
The ahash_init functions may return fails. The ahash_hmac_init should
not return ok when ahash_init returns error. For an example, ahash_init
will return -ENOMEM when allocation memory is error.
Fixes: 9d12ba8 ("crypto: brcm - Add Broadcom SPU driver")
Signed-off-by: Chen Ridong <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>1 parent b64140c commit 19630cf
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2415 | 2415 | | |
2416 | 2416 | | |
2417 | 2417 | | |
| 2418 | + | |
2418 | 2419 | | |
2419 | 2420 | | |
2420 | 2421 | | |
| |||
2424 | 2425 | | |
2425 | 2426 | | |
2426 | 2427 | | |
2427 | | - | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
2428 | 2431 | | |
2429 | 2432 | | |
2430 | 2433 | | |
| |||
0 commit comments