nvme: make nvme_report_ns_ids propagate error back
authorSagi Grimberg <sagi@grimberg.me>
Sat, 3 Aug 2019 01:16:12 +0000 (18:16 -0700)
committerSagi Grimberg <sagi@grimberg.me>
Thu, 12 Sep 2019 15:50:45 +0000 (08:50 -0700)
commit538af88ea7d9de241e6b6f006e9049c4d96723bb
treee6fe7dc6d0861c7a3e8136fe4daa5573d455ad94
parent331813f687ed41347b2b7dc784d81ccdbf6f9157
nvme: make nvme_report_ns_ids propagate error back

Make the callers check the return status and propagate
back accordingly (casting to errno from a positive nvme status).
Also print the return status in nvme_report_ns_ids.

Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/core.c