Commit 613b837
nvme/063: fixup tls_key encryption check
The _nvme_ctrl_tls_key function returns 0 if `tls_key` exists in sysfs for
the respective nvme controller. This will be evaluated as true. However,
the test should error only if the key is not exposed by sysfs. Which
would mean the connection is not encrypted, as per the existing warning
message in the test. Currently, we are checking that it exists and
erroring out incorrectly. This patch fixes the above.
Link: #168
Fixes: 9aa2023 ("nvme: add testcase for secure concatenation")
Signed-off-by: Wilfred Mallawa <[email protected]>
Signed-off-by: Shin'ichiro Kawasaki <[email protected]>1 parent 4348daa commit 613b837
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
0 commit comments