mirror of
https://github.com/opnsense/src.git
synced 2026-02-03 20:49:35 -05:00
Hyper-V: storvsc: relax a kassert check
On ARM64 this kassert check could cause unnecessary panic. Sponsored by: Microsoft
This commit is contained in:
parent
dfd3777085
commit
0af5a0cd27
1 changed files with 4 additions and 1 deletions
|
|
@ -1831,13 +1831,16 @@ storvsc_xferbuf_prepare(void *arg, bus_dma_segment_t *segs, int nsegs, int error
|
|||
for (i = 0; i < nsegs; i++) {
|
||||
#ifdef INVARIANTS
|
||||
if (nsegs > 1) {
|
||||
#if defined(__amd64__)
|
||||
if (i == 0) {
|
||||
KASSERT((segs[i].ds_addr & PAGE_MASK) +
|
||||
segs[i].ds_len == PAGE_SIZE,
|
||||
("invalid 1st page, ofs 0x%jx, len %zu",
|
||||
(uintmax_t)segs[i].ds_addr,
|
||||
segs[i].ds_len));
|
||||
} else if (i == nsegs - 1) {
|
||||
} else
|
||||
#endif
|
||||
if (i == nsegs - 1) {
|
||||
KASSERT((segs[i].ds_addr & PAGE_MASK) == 0,
|
||||
("invalid last page, ofs 0x%jx",
|
||||
(uintmax_t)segs[i].ds_addr));
|
||||
|
|
|
|||
Loading…
Reference in a new issue