Author: luporl
Date: Wed Mar  4 12:21:38 2020
New Revision: 358613
URL: https://svnweb.freebsd.org/changeset/base/358613

Log:
  [aacraid] Add missing unmap call for SYNC mode
  
  This issue was observed on a PowerPC64 machine with an Adaptec RAID Controller
  with PCI device ID 0x028d. After several read/write operations, the kernel was
  panic'ing in bus_dmamap_sync(). This was due to a missing aac_unmap_command()
  in the SYNC path.
  
  PR:   237463
  Reviewed by:  jhibbits
  Differential Revision:        https://reviews.freebsd.org/D23668

Modified:
  head/sys/dev/aacraid/aacraid.c

Modified: head/sys/dev/aacraid/aacraid.c
==============================================================================
--- head/sys/dev/aacraid/aacraid.c      Wed Mar  4 11:32:31 2020        
(r358612)
+++ head/sys/dev/aacraid/aacraid.c      Wed Mar  4 12:21:38 2020        
(r358613)
@@ -903,6 +903,7 @@ aacraid_new_intr_type1(void *arg)
        if (mode & AAC_INT_MODE_SYNC) {
                if (sc->aac_sync_cm) {  
                        cm = sc->aac_sync_cm;
+                       aac_unmap_command(cm);
                        cm->cm_flags |= AAC_CMD_COMPLETED;
                        /* is there a completion handler? */
                        if (cm->cm_complete != NULL) {
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to