mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rasmus Andersen <rasmus@jaquet.dk>
To: tsbogend@alpha.franken.de
Cc: linux-kernel@vger.kernel.org
Subject: [rasmus@jaquet.dk: [PATCH] make drivers/scsi/sun3x_esp.c check request_irq's return value (240p3)]
Date: Wed, 17 Jan 2001 23:43:57 +0100	[thread overview]
Message-ID: <20010117234357.A1212@jaquet.dk> (raw)

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

                 reply	other threads:[~2001-01-17 22:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010117234357.A1212@jaquet.dk \
    --to=rasmus@jaquet.dk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tsbogend@alpha.franken.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®