[rasmus@jaquet.dk: [PATCH] make drivers/scsi/sun3x_esp.c check request_irq's return value (240p3)]

From: Rasmus Andersen (rasmus@jaquet.dk)
Date: Wed Jan 17 2001 - 17:43:57 EST


(Ooops. Forgot to cc linux-kernel.)

----- Forwarded message from Rasmus Andersen <rasmus@jaquet.dk> -----

Hi.

The following patch makes drivers/scsi/sun3x_esp.c check the return
value of request_irq.

Comments?

--- linux-ac9/drivers/scsi/sun3x_esp.c~ Thu Jan 4 22:00:55 2001
+++ linux-ac9/drivers/scsi/sun3x_esp.c Tue Jan 16 22:03:02 2001
@@ -103,7 +103,11 @@
                                            sizeof (cmd_buffer));
 
         esp->irq = 2;
- request_irq(esp->irq, esp_intr, SA_INTERRUPT, "SUN3X SCSI", NULL);
+ if (request_irq(esp->irq, esp_intr, SA_INTERRUPT,
+ "SUN3X SCSI", NULL)) {
+ esp_deallocate(esp);
+ return 0;
+ }
 
         esp->scsi_id = 7;
         esp->diff = 0;

----- End forwarded message -----

-- 
Regards,
        Rasmus(rasmus@jaquet.dk)

The police are not here to create disorder. They're here to preserve disorder." -Former Chicago mayor Daley during the infamous 1968 Democratic Party convention - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jan 23 2001 - 21:00:16 EST