summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-09 06:24:22 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-09 06:24:22 +0000
commitd0bf316edff128f0cddf2907f2871150b2647e96 (patch)
treeb37f150ca93e6534ecf29289ea2ced5b086b427c
parentdbc7fadcbc1aa4896e06c6670efe030fea542c3e (diff)
util/nvmutil: directly compare fd/urandom_fd
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--util/nvmutil/nvmutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 27aa1354..b8ea2376 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -945,7 +945,7 @@ read_gbe_file_exact(int fd, void *buf, size_t len,
}
if (rval != -1) {
- if (path == oldrandom || path == newrandom) {
+ if (fd == urandom_fd) {
/*
* /dev/[u]random reads can still return
* partial reads legally, on some weird