]> www.infradead.org Git - users/hch/nvme-cli.git/commit
fabrics: Return negative errno when asprintf() fails
authorMinwoo Im <minwoo.im.dev@gmail.com>
Wed, 3 Apr 2019 14:53:33 +0000 (23:53 +0900)
committerMinwoo Im <minwoo.im.dev@gmail.com>
Wed, 3 Apr 2019 14:53:33 +0000 (23:53 +0900)
commit115e3ce205b718e6ebc06f0ab8b9ae5d55cb92d0
tree7f1877809cb1065603ecb25ce46b54f9656fc071
parent131073ed37846edbf915ddc5abeb51f372c4bf31
fabrics: Return negative errno when asprintf() fails

asprintf() will return -1 when it fails to allocate memory for the
string given with setting errno to ENOMEM.  For the uniformity, we can
return errno with negative value.

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