(Ooops. Forgot to cc linux-kernel.)

----- Forwarded message from Rasmus Andersen <[EMAIL PROTECTED]> -----

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([EMAIL PROTECTED])

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 [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to