[PATCH] CCISS: disable device when returning failure
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Sun, 25 Jun 2006 12:49:01 +0000 (05:49 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:01:21 +0000 (10:01 -0700)
commitc33ac89bc7d697e23ce09ddae73e0ece5f65ad48
tree4584fa3aa65ee46d3eb48f7b6b81e4af2d165d0e
parente7b69055820a221d7da29092fd553fd7cd6a97d1
[PATCH] CCISS: disable device when returning failure

If something fails after we call pci_enable_device(), we should call
pci_disable_device() before returning the failure.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Acked-by: Jeff Garzik <jeff@garzik.org>
Acked-by: Mike Miller <mike.miller@hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/block/cciss.c