Module Name: src Committed By: kardel Date: Sat Apr 27 13:25:09 UTC 2013
Modified Files: src/sys/dev/ic: aic79xx_inline.h Log Message: fix panic due to physaddr instead of offset being passed to ahd_dmamap_sync To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/dev/ic/aic79xx_inline.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/ic/aic79xx_inline.h diff -u src/sys/dev/ic/aic79xx_inline.h:1.21 src/sys/dev/ic/aic79xx_inline.h:1.22 --- src/sys/dev/ic/aic79xx_inline.h:1.21 Wed Apr 3 14:40:41 2013 +++ src/sys/dev/ic/aic79xx_inline.h Sat Apr 27 13:25:09 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: aic79xx_inline.h,v 1.21 2013/04/03 14:40:41 christos Exp $ */ +/* $NetBSD: aic79xx_inline.h,v 1.22 2013/04/27 13:25:09 kardel Exp $ */ /* * Inline routines shareable across OS platforms. @@ -393,7 +393,7 @@ ahd_sync_sense(struct ahd_softc *ahd, st { ahd_dmamap_sync(ahd, ahd->parent_dmat, scb->sense_map->dmamap, - /*offset*/scb->sense_busaddr, + /*offset*/scb->sense_busaddr - scb->sense_map->physaddr, /*len*/AHD_SENSE_BUFSIZE, op); }