Thread (3 messages) flat view 3 messages, 3 authors, 2011-06-13

Re: [PATCH] ieee802154: Don't leak memory in ieee802154_nl_fill_phy

From: Dmitry Eremin-Solenikov <hidden>
Date: 2011-06-13 20:02:41
Also in: lkml

On 6/12/11, Jesper Juhl [off-list ref] wrote:
In net/ieee802154/nl-phy.c::ieee802154_nl_fill_phy() I see two small
issues.
1) If the allocation of 'buf' fails we may just as well return -EMSGSIZE
   directly rather than jumping to 'out:' and do a pointless kfree(0).
2) We do not free 'buf' unless we jump to one of the error labels and this
   leaks memory.
This patch should address both.

Signed-off-by: Jesper Juhl <redacted>
Acked-by: Dmitry Eremin-Solenikov <redacted>

David, please commit this.

-- 
With best wishes
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help