Skip to contentSkip to conversation

make drivers/scsi/sun3x_esp.c check request_irq's return value (240p3)]

PATCH New Rasmus Andersen 1 participant 1 message Jan 17, 2001 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make drivers/scsi/sun3x_esp.c check request_irq's return value (240p3)]

(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?

drivers/scsi/sun3x_esp.c renamed from drivers/scsi/sun3x_esp.c~ +5 -1
@@ -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 -----

Signature · 10 lines
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/