Linux MM tree latest commits
 help / color / mirror / Atom feed
* [merged] aoe-fix-use-after-free-in-aoedev_by_aoeaddr.patch removed from -mm tree
@ 2012-12-18 20:11 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2012-12-18 20:11 UTC (permalink / raw)
  To: dan.carpenter, ecashin, mm-commits


The patch titled
     Subject: aoe: fix use after free in aoedev_by_aoeaddr()
has been removed from the -mm tree.  Its filename was
     aoe-fix-use-after-free-in-aoedev_by_aoeaddr.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Dan Carpenter <dan.carpenter@oracle.com>
Subject: aoe: fix use after free in aoedev_by_aoeaddr()

We should return NULL on failure instead of returning a freed pointer.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Ed Cashin <ecashin@coraid.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/block/aoe/aoedev.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN drivers/block/aoe/aoedev.c~aoe-fix-use-after-free-in-aoedev_by_aoeaddr drivers/block/aoe/aoedev.c
--- a/drivers/block/aoe/aoedev.c~aoe-fix-use-after-free-in-aoedev_by_aoeaddr
+++ a/drivers/block/aoe/aoedev.c
@@ -461,6 +461,7 @@ aoedev_by_aoeaddr(ulong maj, int min, in
 	d->targets = kcalloc(NTARGETS, sizeof(*d->targets), GFP_ATOMIC);
 	if (!d->targets) {
 		kfree(d);
+		d = NULL;
 		goto out;
 	}
 	d->ntargets = NTARGETS;
_

Patches currently in -mm which might be from dan.carpenter@oracle.com are

origin.patch
linux-next.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-12-18 20:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-18 20:11 [merged] aoe-fix-use-after-free-in-aoedev_by_aoeaddr.patch removed from -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox