[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAAVeFu+rSS-C7560RZCqkRP-jCFYbAoG9sm_THSjipkaAS2aiA@mail.gmail.com>
Date: Mon, 28 Sep 2015 10:44:56 +0900
From: Alexandre Courbot <gnurou@...il.com>
To: Julia Lawall <Julia.Lawall@...6.fr>
Cc: Linus Walleij <linus.walleij@...aro.org>,
kernel-janitors@...r.kernel.org,
"linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] gpio: max730x: eliminate double free
On Sun, Sep 27, 2015 at 5:18 AM, Julia Lawall <Julia.Lawall@...6.fr> wrote:
> The function __max730x_remove is called from the remove functions of
> drivers/gpio/gpio-max7300.c and drivers/gpio/gpio-max7301.c. In both
> cases, the probe function allocates ts using devm_kzalloc. Explicitly
> freeing such a value with kfree will cause a double free.
>
> Signed-off-by: Julia Lawall <Julia.Lawall@...6.fr>
Reviewed-by: Alexandre Courbot <acourbot@...dia.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists