git: nata - properly teardown interrupts on ENXIO
Matthew Dillon
dillon at crater.dragonflybsd.org
Thu Oct 28 23:26:27 PDT 2010
commit 47dc608a12063f0375f80c19aa6b85f48094b8ac
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Thu Oct 28 23:23:48 2010 -0700
nata - properly teardown interrupts on ENXIO
* When a ata controller cannot be attached (e.g. due to AHCI having
already taken its resources) be sure to teardown and release any
resources that had been obtained.
* This fixes a panic on certain motherboards (e.g. gigabyte / phenomX6)
where the ata controller ENXIO'd but left interrupt handlers setup.
An interrupt would then occur, access stale memory, and blow the machine
up.
Summary of changes:
sys/dev/disk/nata/ata-chipset.c | 43 +++++++++++++++++++++++++++++++++-----
sys/dev/disk/nata/ata-pci.c | 9 ++++++-
2 files changed, 44 insertions(+), 8 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/47dc608a12063f0375f80c19aa6b85f48094b8ac
--
DragonFly BSD source repository
More information about the Commits
mailing list