Date: Mon, 27 Oct 2008 09:26:24 +0000 (UTC) From: Søren Schmidt <sos@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r184328 - head/sys/dev/ata Message-ID: <200810270926.m9R9QOZQ033763@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810270926.m9R9QOZQ033763>