]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Create: goto abort_locked instead of return 1 in error path
authorLogan Gunthorpe <logang@deltatee.com>
Wed, 1 Mar 2023 20:41:29 +0000 (13:41 -0700)
committerJes Sorensen <jes@trained-monkey.org>
Mon, 13 Mar 2023 14:08:10 +0000 (10:08 -0400)
commitba867e2ebaead20e3d9a7e62ef8fd940176c3110
tree5af92654bf3c58e24337e82bd06d3a122c470e38
parent68b90794adf8287fa534cc8f35efb09772b133d0
Create: goto abort_locked instead of return 1 in error path

The return 1 after the fstat_is_blkdev() check should be replaced
with an error return that goes through the error path to unlock
resources locked by this function.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Kinga Tanska <kinga.tanska@linux.intel.com>
Reviewed-by: Xiao Ni <xni@redhat.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Acked-by: Coly Li <colyli@suse.de>
Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
Create.c