diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-09 06:24:22 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-09 06:24:22 +0000 |
| commit | d0bf316edff128f0cddf2907f2871150b2647e96 (patch) | |
| tree | b37f150ca93e6534ecf29289ea2ced5b086b427c /util/nvmutil/nvmutil.c | |
| parent | dbc7fadcbc1aa4896e06c6670efe030fea542c3e (diff) | |
util/nvmutil: directly compare fd/urandom_fd
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/nvmutil.c')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 2 |
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 |
