- sata_nv-fix-kfree-ordering-in-remove.patch removed from -mm tree

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

 



The patch titled
     sata_nv: fix kfree ordering in remove
has been removed from the -mm tree.  Its filename was
     sata_nv-fix-kfree-ordering-in-remove.patch

This patch was dropped because it was folded into sata_nv-add-suspend-resume-support.patch

------------------------------------------------------
Subject: sata_nv: fix kfree ordering in remove
From: Robert Hancock <hancockr@xxxxxxx>

The suspend/resume change for sata_nv introduced a potential bug where the
hpriv structure could be used after it was freed in nv_remove_one.  Fix
that.

Signed-off-by: Robert Hancock <hancockr@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/ata/sata_nv.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/ata/sata_nv.c~sata_nv-fix-kfree-ordering-in-remove drivers/ata/sata_nv.c
--- a/drivers/ata/sata_nv.c~sata_nv-fix-kfree-ordering-in-remove
+++ a/drivers/ata/sata_nv.c
@@ -1554,8 +1554,8 @@ static void nv_remove_one (struct pci_de
 	struct ata_host *host = dev_get_drvdata(&pdev->dev);
 	struct nv_host_priv *hpriv = host->private_data;
 
-	kfree(hpriv);
 	ata_pci_remove_one(pdev);
+	kfree(hpriv);
 }
 
 static int nv_pci_device_resume(struct pci_dev *pdev)
_

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

sata_nv-add-suspend-resume-support.patch
sata_nv-fix-kfree-ordering-in-remove.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