]> www.infradead.org Git - users/hch/nvme-cli.git/commit
fabrics: Return negative errno to check remove_ctrl() is failed
authorMinwoo Im <minwoo.im.dev@gmail.com>
Wed, 3 Apr 2019 15:02:05 +0000 (00:02 +0900)
committerMinwoo Im <minwoo.im.dev@gmail.com>
Wed, 3 Apr 2019 15:02:05 +0000 (00:02 +0900)
commit6a0ed973b1671e7dd88273fc4fab5944efd0d96d
tree63c9b0a7ef2ca9b26e977d9d82239192cd33886a
parent115e3ce205b718e6ebc06f0ab8b9ae5d55cb92d0
fabrics: Return negative errno to check remove_ctrl() is failed

remove_ctrl() might fail due to a reason such as memory allocation
failure.  Once it fails, discovery should not proceed, but return the
errorno to the caller immediately.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
fabrics.c