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:
parent
943aca96f7
commit
ac110243a8
@ -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);
|
||||
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user