summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <b.zolnierkiewicz@elka.pw.edu.pl>2003-04-23 20:07:04 -0700
committerChristoph Hellwig <hch@lst.de>2003-04-23 20:07:04 -0700
commit8cfde7d5712cb796f8fc56cfece321981abd29f1 (patch)
tree0d69ab3091541b37fadcdad657d0315218263d89
parent4974e6fc8668b1f5796862f157cee1d44691b414 (diff)
[PATCH] fix init_irq
The patch is obviously correct and has been floating on lkml for some time. From Manfred Spraul: "My init_irq cleanup introduced a bug: on error, the function must return 1."
-rw-r--r--drivers/ide/ide-probe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c
index 1671be7fbb14..9cbd64853ad4 100644
--- a/drivers/ide/ide-probe.c
+++ b/drivers/ide/ide-probe.c
@@ -1214,7 +1214,7 @@ out_unlink:
spin_unlock_irq(&ide_lock);
out_up:
up(&ide_cfg_sem);
- return 0;
+ return 1;
}
static int ata_lock(dev_t dev, void *data)