Thread (52 messages) flat view 52 messages, 7 authors, 2012-07-16

[PATCH 1/9] pinctrl: pinctrl-nomadik: Fix possible memory leak

From: Linus Walleij <hidden>
Date: 2012-07-06 07:03:40
Also in: lkml

On Thu, Jul 5, 2012 at 3:06 PM, Lee Jones [off-list ref] 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 <redacted>
A patch like this but more all-encompassing was already sent out
by me some days ago:
http://marc.info/?l=linux-kernel&m=134139303405730&w=2

Please test that one and see if it solves your problem.

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help