Re: [PATCH 1/9] pinctrl: pinctrl-nomadik: Fix possible memory leak
From: Linus Walleij
Date: Fri Jul 06 2012 - 03:03:33 EST
On Thu, Jul 5, 2012 at 3:06 PM, Lee Jones <lee.jones@xxxxxxxxxx> wrote:
> If the Nomadik Pin Control driver is continuously bound and unbound
> from the same device a number of times the kzalloc() will leak
> memory. Replacing it with devm_kzalloc() will ensure memory is
> freed automatically in the event of failure and unbinding.
> Signed-off-by: Lee Jones <lee.jones@xxxxxxxxxx>
A patch like this but more all-encompassing was already sent out
by me some days ago:
Please test that one and see if it solves your problem.
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/