Commit d658d59
committed
tpm: Return tpm2_sessions_init() when null key creation fails
Do not continue tpm2_sessions_init() further if the null key pair creation
fails.
Cc: [email protected] # v6.10+
Fixes: d2add27 ("tpm: Add NULL primary creation")
Reviewed-by: Stefan Berger <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>1 parent 8198375 commit d658d59
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1347 | 1347 | | |
1348 | 1348 | | |
1349 | 1349 | | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
1350 | 1355 | | |
1351 | 1356 | | |
1352 | 1357 | | |
1353 | 1358 | | |
1354 | 1359 | | |
1355 | 1360 | | |
1356 | | - | |
1357 | | - | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
1358 | 1365 | | |
1359 | 1366 | | |
1360 | 1367 | | |
| |||
0 commit comments