+ fix-possible-oops-in-cs4281-irq-handler.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     Fix possible Oops in cs4281 irq handler

has been added to the -mm tree.  Its filename is

     fix-possible-oops-in-cs4281-irq-handler.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: Fix possible Oops in cs4281 irq handler
From: Takashi Iwai <tiwai@xxxxxxx>


Call ioremap before request_irq for avoiding possible Oops in cs4281
driver.

Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
Cc: Dave Jones <davej@xxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 sound/pci/cs4281.c |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff -puN sound/pci/cs4281.c~fix-possible-oops-in-cs4281-irq-handler sound/pci/cs4281.c
--- devel/sound/pci/cs4281.c~fix-possible-oops-in-cs4281-irq-handler	2006-06-06 14:37:10.000000000 -0700
+++ devel-akpm/sound/pci/cs4281.c	2006-06-06 14:37:10.000000000 -0700
@@ -1379,6 +1379,13 @@ static int __devinit snd_cs4281_create(s
 	chip->ba0_addr = pci_resource_start(pci, 0);
 	chip->ba1_addr = pci_resource_start(pci, 1);
 
+	chip->ba0 = ioremap_nocache(chip->ba0_addr, pci_resource_len(pci, 0));
+	chip->ba1 = ioremap_nocache(chip->ba1_addr, pci_resource_len(pci, 1));
+	if (!chip->ba0 || !chip->ba1) {
+		snd_cs4281_free(chip);
+		return -ENOMEM;
+	}
+	
 	if (request_irq(pci->irq, snd_cs4281_interrupt, SA_INTERRUPT|SA_SHIRQ,
 			"CS4281", chip)) {
 		snd_printk(KERN_ERR "unable to grab IRQ %d\n", pci->irq);
@@ -1387,13 +1394,6 @@ static int __devinit snd_cs4281_create(s
 	}
 	chip->irq = pci->irq;
 
-	chip->ba0 = ioremap_nocache(chip->ba0_addr, pci_resource_len(pci, 0));
-	chip->ba1 = ioremap_nocache(chip->ba1_addr, pci_resource_len(pci, 1));
-	if (!chip->ba0 || !chip->ba1) {
-		snd_cs4281_free(chip);
-		return -ENOMEM;
-	}
-	
 	tmp = snd_cs4281_chip_init(chip);
 	if (tmp) {
 		snd_cs4281_free(chip);
_

Patches currently in -mm which might be from tiwai@xxxxxxx are

git-alsa.patch
fix-possible-oops-in-cs4281-irq-handler.patch
lock-validator-special-locking-sound-core-seq-seq_devicec.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux