summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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