From: Christoph Hellwig <hch@infradead.org>
To: James Bottomley <James.Bottomley@steeleye.com>
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>, atulm@lsil.com
Subject: Re: [PATCH] megaraid 2.00.09
Date: Fri, 17 Oct 2003 13:39:51 +0100 [thread overview]
Message-ID: <20031017133951.D27349@infradead.org> (raw)
In-Reply-To: <1065576771.2684.1.camel@fuzzy>; from James.Bottomley@steeleye.com on Wed, Oct 08, 2003 at 07:02:46AM +0530
- * Copyright © 2002 LSI Logic Corporation.
+ * Copyright © 2002 LSI Logic Corporation.
Strange encoding?
@@ -358,6 +368,21 @@
adapter = (adapter_t *)host->hostdata;
memset(adapter, 0, sizeof(adapter_t));
+ /*
+ * Allocate a pci device structure for allocations done
+ * internally - all of which would be in memory <4GB
+ */
+ adapter->ipdev = kmalloc(sizeof(struct pci_dev), GFP_KERNEL);
+
+ if( adapter->ipdev == NULL ) goto fail_attach;
This is wrong. We have the consistent_dma_mask for this.
+
+ got_ipdev_f = 1;
this got_foo / did_foo stuff is crap - use proper gotos for unwinding,
+
+ adapter->host_lock = &adapter->lock;
+
scsi_assign_lock(host, &adapter->lock);
still b0rked. The driver shouldn't use scsi_assign_lock which
it's one of the last users of but just use host->host_lock directly
everywhere.
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2003-10-17 12:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-08 1:32 [PATCH] megaraid 2.00.09 James Bottomley
2003-10-17 12:39 ` Christoph Hellwig [this message]
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=20031017133951.D27349@infradead.org \
--to=hch@infradead.org \
--cc=James.Bottomley@steeleye.com \
--cc=atulm@lsil.com \
--cc=linux-scsi@vger.kernel.org \
/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