Merge pull request #26563 from dtardon/fd-init
Initialize fds with -EBADF + drop one unneeded initialization
This commit is contained in:
@@ -504,7 +504,7 @@ static int loop_device_make_internal(
|
||||
* the underlying block device. */
|
||||
r = blockdev_get_sector_size(fd, §or_size);
|
||||
else {
|
||||
_cleanup_close_ int non_direct_io_fd = -1;
|
||||
_cleanup_close_ int non_direct_io_fd = -EBADF;
|
||||
int probe_fd;
|
||||
|
||||
assert(S_ISREG(st.st_mode));
|
||||
|
||||
Reference in New Issue
Block a user