Package: linux-image-2.6.12-1-686-smp
Severity: critical

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This is fixed in 2.6.13-rc7.

See http://bugzilla.kernel.org/show_bug.cgi?id=4940.

The attached patch is taken from bugzilla.


- --- dpt_i2o.c.orig    2005-08-08 08:25:46.888900616 -0400
+++ dpt_i2o.c   2005-08-08 08:30:48.062596580 -0400
@@ -1228,8 +1228,13 @@
                        hba_map0_area_size = 524288;
        }
 
+       if (pci_request_regions(pDev)) {
+               PERROR("dpti: adpt_config_hba: pci request region
failed\n");
+               return -EINVAL;
+       }
        base_addr_virt = ioremap(base_addr0_phys,hba_map0_area_size);
        if(!base_addr_virt) {
+               pci_release_regions(pDev);
                PERROR("dpti: adpt_config_hba: io remap failed\n");
                return -EINVAL;
        }
@@ -1239,6 +1244,7 @@
                if(!msg_addr_virt) {
                        PERROR("dpti: adpt_config_hba: io remap failed
on BAR1
\n");
                        iounmap(base_addr_virt);
+                       pci_release_regions(pDev);
                        return -EINVAL;
                }
        } else {
@@ -1252,6 +1258,7 @@
                        iounmap(msg_addr_virt);
                }
                iounmap(base_addr_virt);
+               pci_release_regions(pDev);
                return -ENOMEM;
        }
        memset(pHba, 0, sizeof(adpt_hba));
@@ -1345,6 +1352,7 @@
        up(&adpt_configuration_lock);
 
        iounmap(pHba->base_addr_virt);
+       pci_release_regions(pHba->pDev);
        if(pHba->msg_addr_virt != pHba->base_addr_virt){
                iounmap(pHba->msg_addr_virt);
        }

- -- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-k7
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDKfHECUBS9R84wJERArvSAKDklqeeP5arwPWLmngMxlyLyqHQEgCfWmqH
+yGtR03pwwy65hGN8HsR6OA=
=TL9H
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to