Re: [PATCH] fixed resource leak in scripts/mod/modpost.c

From: Andrew Morton
Date: Wed Aug 04 2010 - 18:44:08 EST


On Wed, 04 Aug 2010 15:38:43 +0300
Alexey Fomenko <ext-alexey.fomenko@xxxxxxxxx> wrote:

> sec2annotation returns malloc'ed buffer directly to printf as an
> argument. Patch lets free this buffer after printing.
>
>
> [0001-fixed-resource-leak-in-scripts-mod-modpost.c.patch text/x-patch (5.3KB)]
> >From 57bde7f335730f95eac75bcec5a27fb6686df25a Mon Sep 17 00:00:00 2001
> From: Alexey Fomenko <ext-alexey.fomenko@xxxxxxxxx>
> Date: Tue, 27 Jul 2010 17:59:04 +0300
> Subject: [PATCH] fixed resource leak in scripts/mod/modpost.c
>

Against 2.6.35:

patching file scripts/mod/modpost.c
Hunk #1 succeeded at 1195 (offset 37 lines).
Hunk #2 FAILED at 1221.
Hunk #3 FAILED at 1243.
Hunk #4 FAILED at 1268.
Hunk #5 FAILED at 1301.
Hunk #6 FAILED at 1318.
5 out of 6 hunks FAILED -- saving rejects to file scripts/mod/modpost.c.rej

please check up on that.

Please also cc Rusty on this change.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/