Commit 8a4df2b
tree: fix nvme_subsystem_scan_namespaces() return handling
nvme list-subsys with the -vv option currently displays the following:
scan controller nvme0
lookup subsystem /sys/class/nvme-subsystem/nvme-subsys0/nvme0
scan controller nvme0 path nvme0c0n1
scan subsystem nvme-subsys0
scan subsystem nvme-subsys0 namespace nvme0n1
failed to scan subsystem nvme-subsys0: Invalid argument
...
The invalid argument seen above is due to the wrong return handling
of nvme_subsystem_scan_namespaces() in nvme_scan_subsystem().
Fix the same.
Signed-off-by: Martin George <[email protected]>1 parent 0d6e855 commit 8a4df2b
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
925 | | - | |
| 925 | + | |
926 | 926 | | |
927 | 927 | | |
928 | 928 | | |
| |||
941 | 941 | | |
942 | 942 | | |
943 | 943 | | |
944 | | - | |
| 944 | + | |
945 | 945 | | |
946 | 946 | | |
947 | 947 | | |
| |||
0 commit comments