kernel/bus_dmamap_load_ccb: Exit early if data direction is CAM_DIR_NONE.
commitf5fbbb5592b6e70521701d1b3d5a25b0d0bd7811
authorSascha Wildner <saw@online.de>
Sun, 12 Feb 2023 04:18:13 +0000 (12 05:18 +0100)
committerSascha Wildner <saw@online.de>
Sun, 12 Feb 2023 04:18:13 +0000 (12 05:18 +0100)
tree07d9a6bbb303bc91a87de10cf486782cb2b1c5b8
parent8c086bfb612f664fc2bec0145d022852aac428b5
kernel/bus_dmamap_load_ccb: Exit early if data direction is CAM_DIR_NONE.

In this case, there is no data either.

This fixes a crash in the upcoming pvscsi(4) driver.

While here, make the code referencing ccb_h a bit shorter.
sys/platform/pc64/x86_64/busdma_machdep.c