From 6033f18694d00dda01f665a38e367dda110bc02b Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 22 Apr 2022 19:20:48 -0700 Subject: [PATCH] ircd::cl: Relax runlevel requirement for memory operations. --- ircd/cl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ircd/cl.cc b/ircd/cl.cc index c4e3fac86..2d525dbb4 100644 --- a/ircd/cl.cc +++ b/ircd/cl.cc @@ -915,14 +915,14 @@ ircd::cl::exec::exec(data &data, const opts &opts) try { - if(unlikely(run::level != run::level::RUN)) + if(unlikely(run::level < run::level::RUN)) throw unavailable { "Unable to write to device in runlevel %s", reflect(run::level), }; - assert(run::level == run::level::RUN); + assert(run::level >= run::level::RUN); const auto max_size { opts.size == -1UL?