Commit 502707c
committed
mi: check response status after each submit()
Add a few checks to the callers of nvme_mi_submit(), to ensure that the
response status is zero before considering the data valid.
In the existing cases, we'd currently fail for response length
mismatches, but we want to be explicit about the check.
Signed-off-by: Jeremy Kerr <[email protected]>1 parent c13abc6 commit 502707c
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
355 | 358 | | |
356 | 359 | | |
357 | 360 | | |
| |||
593 | 596 | | |
594 | 597 | | |
595 | 598 | | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
596 | 602 | | |
597 | 603 | | |
598 | | - | |
599 | 604 | | |
600 | 605 | | |
601 | 606 | | |
| |||
713 | 718 | | |
714 | 719 | | |
715 | 720 | | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
716 | 724 | | |
717 | 725 | | |
718 | 726 | | |
| |||
721 | 729 | | |
722 | 730 | | |
723 | 731 | | |
724 | | - | |
725 | 732 | | |
726 | 733 | | |
727 | 734 | | |
| |||
0 commit comments