public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Mark Haverkamp <markh@osdl.org>
Cc: James Bottomley <James.Bottomley@steeleye.com>,
	linux-scsi <linux-scsi@vger.kernel.org>,
	Mark Salyzyn <mark_salyzyn@adaptec.com>
Subject: Re: [PATCH] 2.6.9 aacraid: aac_count fix
Date: Tue, 14 Sep 2004 22:14:27 +0100	[thread overview]
Message-ID: <20040914221427.A12989@infradead.org> (raw)
In-Reply-To: <1095192761.25727.7.camel@markh1.pdx.osdl.net>; from markh@osdl.org on Tue, Sep 14, 2004 at 01:12:42PM -0700

On Tue, Sep 14, 2004 at 01:12:42PM -0700, Mark Haverkamp wrote:
> +	for (; (unique_id < aac_count) && aac_devices[unique_id]; ++unique_id)
> +		continue;
> +	if (unique_id >= MAXIMUM_NUM_ADAPTERS)
> +		goto out;

Do we need an upper limit at all?

> +	scsi_set_device(shost, &pdev->dev);

This one is bogus.  scsi_add_host already sets the device.

> @@ -682,6 +693,8 @@
>  	error = pci_module_init(&aac_pci_driver);
>  	if (error)
>  		return error;
> +	if (!aac_count)
> +		return -ENODEV;

This hunk is definitly wrong, 

 a) want the module stay loaded for hot plugging if explicitly loaded
    as module
 b) you're missing an pci driver unregistration here

So just remove this hunk

  reply	other threads:[~2004-09-14 21:14 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-14 20:12 [PATCH] 2.6.9 aacraid: aac_count fix Mark Haverkamp
2004-09-14 21:14 ` Christoph Hellwig [this message]
2004-09-14 21:37   ` Mark Haverkamp
2004-09-14 21:55     ` Christoph Hellwig
2004-09-15 14:51       ` Mark Haverkamp
  -- strict thread matches above, loose matches on Subject: below --
2004-09-15 11:47 Salyzyn, Mark
2004-09-15 14:24 ` Mark Haverkamp
2004-09-16 11:29 ` Christoph Hellwig
2004-09-15 17:43 Salyzyn, Mark
2004-09-15 20:24 ` Mark Haverkamp
2004-09-16 15:14 Mark Haverkamp
2004-09-16 18:22 ` Christoph Hellwig
2004-09-16 19:12 Salyzyn, Mark

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=20040914221427.A12989@infradead.org \
    --to=hch@infradead.org \
    --cc=James.Bottomley@steeleye.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=mark_salyzyn@adaptec.com \
    --cc=markh@osdl.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