diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2007-04-22 05:03:05 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2007-04-22 05:03:05 +0000 |
commit | f1541e5b98b86b3eb5892a24b07ddee99dc0a601 (patch) | |
tree | 9bee2e741a2ee3a492716ab863a36cf88e704870 /sys/dev | |
parent | 32569b47f06f77339c5c27f3126e9a50d74e9792 (diff) |
unload the dmamap of the ccb used in ncq error handling once we've finished
with it. prevents free panics on sparc64.
found by deraadt on a v215.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/ahci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/ahci.c b/sys/dev/pci/ahci.c index a6a508dd8c4..8e04bdf9c85 100644 --- a/sys/dev/pci/ahci.c +++ b/sys/dev/pci/ahci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ahci.c,v 1.114 2007/04/22 03:49:31 deraadt Exp $ */ +/* $OpenBSD: ahci.c,v 1.115 2007/04/22 05:03:04 dlg Exp $ */ /* * Copyright (c) 2006 David Gwynne <dlg@openbsd.org> @@ -2021,6 +2021,7 @@ err: } /* Done with the error CCB now. */ + ahci_unload_prdt(ccb); ahci_put_err_ccb(ccb); /* Extract failed register set and tags from the scratch space. */ |