All of lore.kernel.org
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@redhat.com>
To: jbglaw@lug-owl.de
Cc: linux-kernel@vger.kernel.org, torvalds@transmeta.com
Subject: Re: Oops while inserting sym53c8xx.o
Date: Tue, 16 Oct 2001 02:29:02 -0700 (PDT)	[thread overview]
Message-ID: <20011016.022902.74752070.davem@redhat.com> (raw)
In-Reply-To: <20011016110925.B27144@lug-owl.de>
In-Reply-To: <20011016110925.B27144@lug-owl.de>


This should fix it, Linux please apply.

--- drivers/scsi/sym53c8xx.c.~1~	Mon Oct  8 21:04:56 2001
+++ drivers/scsi/sym53c8xx.c	Tue Oct 16 02:27:44 2001
@@ -13168,14 +13168,14 @@
 	** in the size field.  We use normal 32-bit PCI addresses for
 	** descriptors.
 	*/
-	if (chip->features & FE_DAC) {
+	if (chip && (chip->features & FE_DAC)) {
 		if (pci_set_dma_mask(pdev, (u64) 0xffffffffff))
 			chip->features &= ~FE_DAC_IN_USE;
 		else
 			chip->features |= FE_DAC_IN_USE;
 	}
 
-	if (!(chip->features & FE_DAC_IN_USE)) {
+	if (chip && !(chip->features & FE_DAC_IN_USE)) {
 		if (pci_set_dma_mask(pdev, (u64) 0xffffffff)) {
 			printk(KERN_WARNING NAME53C8XX
 			       "32 BIT PCI BUS DMA ADDRESSING NOT SUPPORTED\n");

  reply	other threads:[~2001-10-16  9:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-16  9:09 Oops while inserting sym53c8xx.o Jan-Benedict Glaw
2001-10-16  9:29 ` David S. Miller [this message]
2001-10-16 13:33   ` Jan-Benedict Glaw
2001-10-16 19:16   ` Gérard Roudier
2001-10-16 19:27     ` Jan-Benedict Glaw

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=20011016.022902.74752070.davem@redhat.com \
    --to=davem@redhat.com \
    --cc=jbglaw@lug-owl.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.