From d0bf316edff128f0cddf2907f2871150b2647e96 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 9 Mar 2026 06:24:22 +0000 Subject: util/nvmutil: directly compare fd/urandom_fd Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1