bsod,loop-util: fix fd validity check

This commit is contained in:
Lennart Poettering
2023-11-01 15:21:20 +01:00
parent 943aca96f7
commit ac110243a8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ static int open_lock_fd(int primary_fd, int operation) {
}
static int loop_configure_verify_direct_io(int fd, const struct loop_config *c) {
assert(fd);
assert(fd >= 0);
assert(c);
if (FLAGS_SET(c->info.lo_flags, LO_FLAGS_DIRECT_IO)) {