From: Greg KH <greg@kroah.com>
To: linux-kernel@vger.kernel.org, pcihpd-discuss@lists.sourceforge.net
Subject: Re: [PATCH] PCI Hotplug changes for 2.5.59
Date: Wed, 5 Feb 2003 20:08 -0800 [thread overview]
Message-ID: <1044504489271@kroah.com> (raw)
In-Reply-To: <10445044882693@kroah.com>
ChangeSet 1.947.23.9, 2003/02/05 17:20:29+11:00, rddunlap@osdl.org
[PATCH] PCI Hotplug: checker patches
Fixes problems found by the CHECKER program in the pci hotplug drivers
diff -Nru a/drivers/hotplug/cpqphp_pci.c b/drivers/hotplug/cpqphp_pci.c
--- a/drivers/hotplug/cpqphp_pci.c Thu Feb 6 14:51:47 2003
+++ b/drivers/hotplug/cpqphp_pci.c Thu Feb 6 14:51:47 2003
@@ -1193,7 +1193,7 @@
if (temp != func->config_space[cloop >> 2]) {
dbg("Config space compare failure!!! offset = %x\n", cloop);
dbg("bus = %x, device = %x, function = %x\n", func->bus, func->device, func->function);
- dbg("temp = %x, config space = %x\n\n", temp, func->config_space[cloop]);
+ dbg("temp = %x, config space = %x\n\n", temp, func->config_space[cloop >> 2]);
return 1;
}
}
diff -Nru a/drivers/hotplug/ibmphp_pci.c b/drivers/hotplug/ibmphp_pci.c
--- a/drivers/hotplug/ibmphp_pci.c Thu Feb 6 14:51:47 2003
+++ b/drivers/hotplug/ibmphp_pci.c Thu Feb 6 14:51:47 2003
@@ -1621,23 +1621,23 @@
}
for (i = 0; i < count; i++) {
- if (cur_func->io[count]) {
- debug ("io[%d] exists \n", count);
+ if (cur_func->io[i]) {
+ debug ("io[%d] exists \n", i);
if (the_end > 0)
- ibmphp_remove_resource (cur_func->io[count]);
- cur_func->io[count] = NULL;
+ ibmphp_remove_resource (cur_func->io[i]);
+ cur_func->io[i] = NULL;
}
- if (cur_func->mem[count]) {
- debug ("mem[%d] exists \n", count);
+ if (cur_func->mem[i]) {
+ debug ("mem[%d] exists \n", i);
if (the_end > 0)
- ibmphp_remove_resource (cur_func->mem[count]);
- cur_func->mem[count] = NULL;
+ ibmphp_remove_resource (cur_func->mem[i]);
+ cur_func->mem[i] = NULL;
}
- if (cur_func->pfmem[count]) {
- debug ("pfmem[%d] exists \n", count);
+ if (cur_func->pfmem[i]) {
+ debug ("pfmem[%d] exists \n", i);
if (the_end > 0)
- ibmphp_remove_resource (cur_func->pfmem[count]);
- cur_func->pfmem[count] = NULL;
+ ibmphp_remove_resource (cur_func->pfmem[i]);
+ cur_func->pfmem[i] = NULL;
}
}
next prev parent reply other threads:[~2003-02-06 4:07 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-06 4:03 [BK PATCH] PCI Hotplug changes for 2.5.59 Greg KH
2003-02-06 4:08 ` [PATCH] " Greg KH
2003-02-06 4:08 ` Greg KH
2003-02-06 4:08 ` Greg KH
2003-02-06 4:08 ` Greg KH
2003-02-06 4:08 ` Greg KH
2003-02-06 4:08 ` Greg KH
2003-02-06 4:08 ` Greg KH
2003-02-06 4:08 ` Greg KH
2003-02-06 4:08 ` Greg KH [this message]
2003-02-06 4:08 ` Greg KH
2003-02-06 4:08 ` Greg KH
2003-02-06 4:08 ` Greg KH
2003-02-06 4:08 ` Greg KH
2003-02-06 4:08 ` Greg KH
2003-02-06 4:08 ` Greg KH
2003-02-06 4:08 ` Greg KH
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=1044504489271@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pcihpd-discuss@lists.sourceforge.net \
/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