Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f9ff161a14baca1a4ead5f12377ab25b9dd332e1
Commit:     f9ff161a14baca1a4ead5f12377ab25b9dd332e1
Parent:     dee1b66ce4f406d36fef70d1dd4360c5f1d26218
Author:     Takashi Iwai <[EMAIL PROTECTED]>
AuthorDate: Mon Aug 13 16:16:53 2007 +0200
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Tue Oct 16 15:58:51 2007 +0200

    [ALSA] mixart - Check ioremap error
    
    Check ioremap error and handle properly at initialization.
    
    Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
---
 sound/pci/mixart/mixart.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/sound/pci/mixart/mixart.c b/sound/pci/mixart/mixart.c
index ac007ce..c510954 100644
--- a/sound/pci/mixart/mixart.c
+++ b/sound/pci/mixart/mixart.c
@@ -1317,6 +1317,12 @@ static int __devinit snd_mixart_probe(struct pci_dev 
*pci,
                mgr->mem[i].phys = pci_resource_start(pci, i);
                mgr->mem[i].virt = ioremap_nocache(mgr->mem[i].phys,
                                                   pci_resource_len(pci, i));
+               if (!mgr->mem[i].virt) {
+                       printk(KERN_ERR "unable to remap resource 0x%lx\n",
+                              mgr->mem[i].phys);
+                       snd_mixart_free(mgr);
+                       return -EBUSY;
+               }
        }
 
        if (request_irq(pci->irq, snd_mixart_interrupt, IRQF_SHARED,
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to