]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
plugins/solidigm: fix return value on format parse failure
authorJeremy Kerr <jk@codeconstruct.com.au>
Tue, 12 Jul 2022 06:45:29 +0000 (14:45 +0800)
committerJeremy Kerr <jk@codeconstruct.com.au>
Wed, 3 Aug 2022 07:30:19 +0000 (15:30 +0800)
commit7844222edd0acda76620a17cbfbc756fce6621f0
treef5bbbfa44f116bad667389f54a48d611db3e7e92
parent9fbef859c28b4bd98a1b6bcb57fe3250d2634803
plugins/solidigm: fix return value on format parse failure

If validate_output_format() fails, there are a couple of paths in the
solidgm code that will return a (closed) file descriptor, rather than an
error status. This looks to be a couple of copy-and-paste errors.

This change fixes the return value for these failure path, ensuring that
we'll actually have an error return.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
plugins/solidigm/solidigm-garbage-collection.c
plugins/solidigm/solidigm-smart.c