Commit e3b12d0c55e4 ("util/event_notifier: more strict API") added asserts
for uninitialized file descriptors in the various helper routines, because
it presumes that such a thing is always in place once a couple of
problematic paths were corrected in that commit.Not all paths appear to adhere to this, however. s390x breaks because there is no config notifier so things that rely on vhost (virtio-net-ccw, vhost-vsock-ccw, etc.) fail on this assertion when called from vhost_start_config_intr(). Remove these new assertions from the API; can try again another day. Link: https://lore.kernel.org/qemu-devel/cafeaca8+x3bf0ldyh9hu6j9n-a8lii6fb8orb2coucn-fay...@mail.gmail.com/ Fixes: e3b12d0c55e4 ("util/event_notifier: more strict API") Signed-off-by: Eric Farman <[email protected]> --- util/event_notifier-posix.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/util/event_notifier-posix.c b/util/event_notifier-posix.c index f595945af74..db53e0cee02 100644 --- a/util/event_notifier-posix.c +++ b/util/event_notifier-posix.c @@ -27,7 +27,6 @@ */ void event_notifier_init_fd(EventNotifier *e, int fd) { - assert(fd >= 0); e->rfd = fd; e->wfd = fd; e->initialized = true; @@ -97,15 +96,11 @@ void event_notifier_cleanup(EventNotifier *e) int event_notifier_get_fd(const EventNotifier *e) { - assert(e->initialized); - assert(e->rfd >= 0); return e->rfd; } int event_notifier_get_wfd(const EventNotifier *e) { - assert(e->initialized); - assert(e->wfd >= 0); return e->wfd; } -- 2.53.0
