]> git.baikalelectronics.ru Git - kernel.git/commit
pata_legacy: don't call ata_host_detach() after initialization failure
authorTejun Heo <htejun@gmail.com>
Wed, 13 Feb 2008 09:20:19 +0000 (18:20 +0900)
committerJeff Garzik <jeff@garzik.org>
Fri, 15 Feb 2008 18:51:12 +0000 (13:51 -0500)
commitcd93caa960cff3475855c4f1d49e8b5390c39c32
treee877fc0bd4ed426d3f7d70bed218cf7d4c5555b1
parent8e3837e7f13d118172bf41722e919f71c2e5485f
pata_legacy: don't call ata_host_detach() after initialization failure

ata_host_detach() detaches an attached port and shouldn't be called on
a port which hasn't been attached yet.  pata_legacy incorrectly calls
ata_host_detach() on unattached port after initialization failure
causing oops.  Fix it.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/pata_legacy.c