Page MenuHomeFreeBSD

D28862.diff
No OneTemporary

D28862.diff

diff --git a/sys/amd64/vmm/amd/amdvi_hw.c b/sys/amd64/vmm/amd/amdvi_hw.c
--- a/sys/amd64/vmm/amd/amdvi_hw.c
+++ b/sys/amd64/vmm/amd/amdvi_hw.c
@@ -515,8 +515,7 @@
printf(" [CMD%d, off:0x%x] opcode= 0x%x 0x%x"
" 0x%x 0x%lx\n", i, off, cmd->opcode,
cmd->word0, cmd->word1, cmd->addr);
- off = (off + sizeof(struct amdvi_cmd)) %
- (softc->cmd_max * sizeof(struct amdvi_cmd));
+ off = MOD_INC(off, sizeof(struct amdvi_cmd), softc->cmd_max);
}
}

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 27, 8:10 AM (11 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15612479
Default Alt Text
D28862.diff (472 B)

Event Timeline