]> www.infradead.org Git - users/sagi/libnvme.git/commit
ioctl: return EPROTO when an NVMe status occurred
authorHannes Reinecke <hare@suse.de>
Thu, 4 Apr 2024 07:07:33 +0000 (09:07 +0200)
committerDaniel Wagner <wagi@monom.org>
Tue, 9 Apr 2024 12:47:59 +0000 (14:47 +0200)
commit3089da58d2c35b3b700c1eb88540f96cfe0e87ad
treee832720511872e0f59fd11369e7874e9374bd029
parent7d927f5f38ebd7c90abebb5ebac4701a1bad0993
ioctl: return EPROTO when an NVMe status occurred

The ioctl might return 0, but the NVMe status might indicate an
error. In these cases we should return EPROTO to indicate that
the command did not succeed.

Signed-off-by: Hannes Reinecke <hare@suse.de>
src/nvme/ioctl.c
test/ioctl/features.c