Ensure that the buffer is in nvme_single_map() mapped to single segment.
Not a functional change. MFC after: 1 week
This commit is contained in:
parent
cacb6b26c2
commit
9138770728
@ -478,6 +478,7 @@ nvme_single_map(void *arg, bus_dma_segment_t *seg, int nseg, int error)
|
||||
{
|
||||
uint64_t *bus_addr = (uint64_t *)arg;
|
||||
|
||||
KASSERT(nseg == 1, ("number of segments (%d) is not 1", nseg));
|
||||
if (error != 0)
|
||||
printf("nvme_single_map err %d\n", error);
|
||||
*bus_addr = seg[0].ds_addr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user