diff options
author | Prarit Bhargava <prarit@sgi.com> | 2006-02-09 14:12:24 -0800 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2006-02-09 14:12:24 -0800 |
commit | 8b34ff427d6f3b0a1207829350b9db16376f88c5 (patch) | |
tree | a3f33ef514dc2da5aa098686acc00cfaf1eaa98b /arch/ia64/sn/kernel/io_init.c | |
parent | 0bdd340c092b0936f78a54bdbd3927463ed4fca3 (diff) | |
download | op-kernel-dev-8b34ff427d6f3b0a1207829350b9db16376f88c5.zip op-kernel-dev-8b34ff427d6f3b0a1207829350b9db16376f88c5.tar.gz |
[IA64-SGI] Hotplug driver related fix in the SN ia64 code.
Remove an erroneous kfree, and unlink the pcidev_info struct from the
pcidev_info list prior to free'ing the pcidev_info struct.
Signed-off-by: Prarit Bhargava <prarit@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/sn/kernel/io_init.c')
-rw-r--r-- | arch/ia64/sn/kernel/io_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/ia64/sn/kernel/io_init.c b/arch/ia64/sn/kernel/io_init.c index d7e4d79..2e4e56b 100644 --- a/arch/ia64/sn/kernel/io_init.c +++ b/arch/ia64/sn/kernel/io_init.c @@ -623,6 +623,8 @@ sn_sysdata_free_start: list_for_each(list, &sn_sysdata_list) { element = list_entry(list, struct sysdata_el, entry); list_del(&element->entry); + list_del(&(((struct pcidev_info *) + (element->sysdata))->pdi_list)); kfree(element->sysdata); kfree(element); goto sn_sysdata_free_start; |