The patch titled Subject: aoe: fix use after free in aoedev_by_aoeaddr() has been added to the -mm tree. Its filename is aoe-fix-use-after-free-in-aoedev_by_aoeaddr.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Dan Carpenter <dan.carpenter@xxxxxxxxxx> 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@xxxxxxxxxx> Cc: Ed Cashin <ecashin@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- 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@xxxxxxxxxx are origin.patch linux-next.patch aoe-print-warning-regarding-a-common-reason-for-dropped-transmits-fix.patch aoe-fix-use-after-free-in-aoedev_by_aoeaddr.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