Message ID | 20230301204135.39230-2-logang@deltatee.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
Series | Write Zeroes option for Creating Arrays | expand |
diff --git a/Create.c b/Create.c index 953e73722518..2e8203ecdccd 100644 --- a/Create.c +++ b/Create.c @@ -939,7 +939,7 @@ int Create(struct supertype *st, char *mddev, goto abort_locked; } if (!fstat_is_blkdev(fd, dv->devname, &rdev)) - return 1; + goto abort_locked; inf->disk.major = major(rdev); inf->disk.minor = minor(rdev); }