Commit 7eedd81
committed
ioctl: avoid segfaults due to potential NULL pointer dereferencing
Add guardrails to avoid segfaults due to potential NULL pointer
dereferencing in nvme_submit_passthru64() and
nvme_submit_passthru32() functions.
Signed-off-by: Martin George <[email protected]>1 parent a138f6e commit 7eedd81
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
0 commit comments