diff options
-rw-r--r-- | bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -64,7 +64,7 @@ int addr_to_pramin_mut(struct nvdebug_state *g, | |||
64 | goto relocate; | 64 | goto relocate; |
65 | } | 65 | } |
66 | pramin_base = ((uint64_t)window.base) << 16; | 66 | pramin_base = ((uint64_t)window.base) << 16; |
67 | if (addr < pramin_base || addr > pramin_base + NV_PRAMIN_LEN) | 67 | if (addr < pramin_base || addr >= pramin_base + NV_PRAMIN_LEN) |
68 | goto relocate; | 68 | goto relocate; |
69 | return addr - pramin_base; // Guaranteed to be < 1MiB, so safe for int | 69 | return addr - pramin_base; // Guaranteed to be < 1MiB, so safe for int |
70 | relocate: | 70 | relocate: |