All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Smart <James.Smart@Emulex.Com>
To: Christoph Hellwig <hch@infradead.org>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH 4/7] lpfc 8.1.5 : Fix cleanup code in the lpfc_pci_probe_one() error code path
Date: Sun, 16 Apr 2006 19:03:29 -0400	[thread overview]
Message-ID: <4442CD41.6010106@emulex.com> (raw)
In-Reply-To: <20060415164026.GA2939@infradead.org>

Ok - so what's going on here is that the pci subsystem treated any
positive (not just zero) return value as success. We returned error codes,
but not negative error codes. Thus, the pci subsystem was calling our
remove function even though we returned an error status in our probe
function.

the updated patch will be posted shortly.

-- james

Christoph Hellwig wrote:
> On Sat, Apr 15, 2006 at 11:53:10AM -0400, James Smart wrote:
>> @@ -1725,9 +1730,14 @@ static void __devexit
>>  lpfc_pci_remove_one(struct pci_dev *pdev)
>>  {
>>  	struct Scsi_Host   *host = pci_get_drvdata(pdev);
>> -	struct lpfc_hba    *phba = (struct lpfc_hba *)host->hostdata;
>> +	struct lpfc_hba    *phba;
>>  	unsigned long iflag;
>>  
>> +	if (host == NULL)
>> +		return;
>> +
>> +	phba = (struct lpfc_hba *)host->hostdata;
> 
> If this ever happen there's something really badly wrong in lpfc_pci_probe_one,
> so please don't put this check in.
> 

      reply	other threads:[~2006-04-16 23:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-15 15:53 [PATCH 4/7] lpfc 8.1.5 : Fix cleanup code in the lpfc_pci_probe_one() error code path James Smart
2006-04-15 16:40 ` Christoph Hellwig
2006-04-16 23:03   ` James Smart [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=4442CD41.6010106@emulex.com \
    --to=james.smart@emulex.com \
    --cc=hch@infradead.org \
    --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 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.