]> www.infradead.org Git - users/sagi/libnvme.git/commit
mi: check response status after each submit()
authorJeremy Kerr <jk@codeconstruct.com.au>
Wed, 29 Jun 2022 08:45:38 +0000 (16:45 +0800)
committerJeremy Kerr <jk@codeconstruct.com.au>
Fri, 1 Jul 2022 06:52:36 +0000 (14:52 +0800)
commit502707c11a1792472b11e48d6f83f71c8ae3d7eb
tree2d2844306321efc6808dfb0b5c525986f43a5930
parentc13abc620ac7105592380766ba5b3f95b258de2d
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 <jk@codeconstruct.com.au>
src/nvme/mi.c