git: kernel/bus_dmamap_load_ccb: Exit early if data direction is CAM_DIR_NONE.

Sascha Wildner swildner at crater.dragonflybsd.org
Sat Feb 11 20:19:04 PST 2023


commit f5fbbb5592b6e70521701d1b3d5a25b0d0bd7811
Author: Sascha Wildner <saw at online.de>
Date:   Sun Feb 12 05:18:13 2023 +0100

    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.

Summary of changes:
 sys/platform/pc64/x86_64/busdma_machdep.c | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f5fbbb5592b6e70521701d1b3d5a25b0d0bd7811


-- 
DragonFly BSD source repository


More information about the Commits mailing list