From 7bbf13554570b0693089cf3c8303912ac823c220 Mon Sep 17 00:00:00 2001 From: Sagi Grimberg Date: Wed, 9 Sep 2020 14:58:33 -0700 Subject: [PATCH] nvme-status: Don't reduce all negative statuses to ECOMM There should be no reason why we should reduce all the semantic status codes we are getting from the device/driver to a single meaningless status code. Signed-off-by: Sagi Grimberg --- nvme-status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvme-status.c b/nvme-status.c index a78c1fd0..7821de2d 100644 --- a/nvme-status.c +++ b/nvme-status.c @@ -142,7 +142,7 @@ __u8 nvme_status_to_errno(int status, bool fabrics) return 0; if (status < 0) - return ECOMM; + return errno; /* * The actual status code is enough with masking 0xff, but we need to -- 2.50.1