1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-12 13:18:14 +03:00

bsod,loop-util: fix fd validity check

This commit is contained in:
Lennart Poettering 2023-11-01 13:08:26 +01:00
parent 943aca96f7
commit ac110243a8
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ static int acquire_first_emergency_log_message(char **ret) {
static int find_next_free_vt(int fd, int *ret_free_vt, int *ret_original_vt) {
struct vt_stat terminal_status;
assert(fd);
assert(fd >= 0);
assert(ret_free_vt);
assert(ret_original_vt);

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)) {