diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-03 13:23:20 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-03 13:23:20 +0000 |
| commit | 3bdefad0977986e4f70ca609a4c926b16fe76b43 (patch) | |
| tree | 88130b74617c18232388077e4136ccf79818c958 | |
| parent | 50942a7a15033c8328f10a4ed5c6d0e0149c8ad3 (diff) | |
util/nvmutil: readGbe: use inverted part in swap
i overlooked this in a previous modification
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -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 e43db7ef..3bc2a4d1 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -210,7 +210,7 @@ readGbe_part(int p, int invert) != SIZE_4KB) err(set_err(ECANCELED), "Can't read %d b from '%s' p%d", SIZE_4KB, fname, p); - swap(p); /* handle big-endian host CPU */ + swap(p ^ invert); /* handle big-endian host CPU */ } void |
