Commit b495629
committed
ioct: avoid segfault for list & list-subsys commands
Below segfault seen in nvme_submit_passthru64() while running list
and list-subsys commands:
scan controller nvme0
lookup subsystem /sys/class/nvme-subsystem/nvme-subsys0/nvme0
scan controller nvme0 path nvme0c0n1
failed to scan ctrl nvme0: Success
scan subsystem nvme-subsys0
scan subsystem nvme-subsys0 namespace nvme0n1
Segmentation fault (core dumped)
This is due to an invalid dereferencing of the nvme_transport_handle
structure content at hdl->ctx->dry_run. Fix the same.
Signed-off-by: Martin George <marting@netapp.com>1 parent a138f6e commit b495629
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
0 commit comments