Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic fix panic due to physaddr instead of offset being...



details:   https://anonhg.NetBSD.org/src/rev/d4df116b77ff
branches:  trunk
changeset: 786357:d4df116b77ff
user:      kardel <kardel%NetBSD.org@localhost>
date:      Sat Apr 27 13:25:09 2013 +0000

description:
fix panic due to physaddr instead of offset being passed to ahd_dmamap_sync

diffstat:

 sys/dev/ic/aic79xx_inline.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r ec6df724a87d -r d4df116b77ff sys/dev/ic/aic79xx_inline.h
--- a/sys/dev/ic/aic79xx_inline.h       Sat Apr 27 12:51:45 2013 +0000
+++ b/sys/dev/ic/aic79xx_inline.h       Sat Apr 27 13:25:09 2013 +0000
@@ -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_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);
 }
 



Home | Main Index | Thread Index | Old Index