Commit 8cfde7d5 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Christoph Hellwig

[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."
parent 4974e6fc
......@@ -1214,7 +1214,7 @@ static int init_irq (ide_hwif_t *hwif)
spin_unlock_irq(&ide_lock);
out_up:
up(&ide_cfg_sem);
return 0;
return 1;
}
static int ata_lock(dev_t dev, void *data)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment