git: DragonFly_RELEASE_6_4 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:20:08 PST 2023


commit 87a4acaedc4cc036c4456b1697d6a34a64fce94c
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/87a4acaedc4cc036c4456b1697d6a34a64fce94c


-- 
DragonFly BSD source repository


More information about the Commits mailing list