From a6b89d0dadce72ddf0e029999b968d611225d87f Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 30 Jun 2015 00:30:26 +0200 Subject: Fix restoring interrupts on timeout * linux/dev/drivers/block/ahci.c (ahci_identify): Restore flags before returning on timeout. --- linux/dev/drivers/block/ahci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux/dev/drivers/block/ahci.c b/linux/dev/drivers/block/ahci.c index 58105a70..9bb2e6b4 100644 --- a/linux/dev/drivers/block/ahci.c +++ b/linux/dev/drivers/block/ahci.c @@ -638,6 +638,7 @@ static int ahci_identify(const volatile struct ahci_host *ahci_host, const volat port->ahci_host = NULL; port->ahci_port = NULL; del_timer(&identify_timer); + restore_flags(flags); return 3; } sleep_on(&port->q); -- cgit v1.2.3