svn commit: r184328 - head/sys/dev/ata

Søren Schmidt sos at FreeBSD.org
Mon Oct 27 02:26:24 PDT 2008


Author: sos
Date: Mon Oct 27 09:26:24 2008
New Revision: 184328
URL: http://svn.freebsd.org/changeset/base/184328

Log:
  Only call dma.unload() if initialized.
  
  Reported by: Stanislav Sedov

Modified:
  head/sys/dev/ata/ata-queue.c

Modified: head/sys/dev/ata/ata-queue.c
==============================================================================
--- head/sys/dev/ata/ata-queue.c	Mon Oct 27 08:40:13 2008	(r184327)
+++ head/sys/dev/ata/ata-queue.c	Mon Oct 27 09:26:24 2008	(r184328)
@@ -503,7 +503,8 @@ ata_timeout(struct ata_request *request)
 	request->flags |= ATA_R_TIMEOUT;
 	mtx_unlock(&ch->state_mtx);
 	ATA_LOCKING(ch->dev, ATA_LF_UNLOCK);
-	ch->dma.unload(request);
+	if (ch->dma.unload)
+	    ch->dma.unload(request);
 	ata_finish(request);
     }
     else {


More information about the svn-src-all mailing list