Commit fa4969f
committed
tree: preserve dhchap_key to during scan
Commit fe89efa ("tree: do not set dhchap_key to 'none'") and
commit a343ed6 ("tree: always set the host key") missed one spot to
preserve the existing secret (aka host key). Update nvme_scan_ctrl to
only set the secret from sysfs when it's actually there.
Reported-by: Puspak Sahu <puspak.sahu@nutanix.com>
Signed-off-by: Daniel Wagner <wagi@kernel.org>1 parent 6634493 commit fa4969f
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2245 | 2245 | | |
2246 | 2246 | | |
2247 | 2247 | | |
| 2248 | + | |
2248 | 2249 | | |
2249 | 2250 | | |
2250 | 2251 | | |
| |||
2261 | 2262 | | |
2262 | 2263 | | |
2263 | 2264 | | |
2264 | | - | |
2265 | | - | |
2266 | | - | |
| 2265 | + | |
| 2266 | + | |
2267 | 2267 | | |
2268 | | - | |
| 2268 | + | |
| 2269 | + | |
2269 | 2270 | | |
| 2271 | + | |
2270 | 2272 | | |
2271 | 2273 | | |
2272 | 2274 | | |
| |||
0 commit comments