Re: [RFC] igmp: address pmc kmemleak from on igmpv3_del_delrec()

2017-02-06 Thread David Miller
From: Cong Wang Date: Mon, 6 Feb 2017 16:32:14 -0800 > On Fri, Feb 3, 2017 at 1:20 PM, Luis R. Rodriguez wrote: >> When we igmpv3_add_delrec() we kzalloc the pmc, but when users >> calligmpv3_del_delrec() we never free the pmc. This was caught >> by the following kmemleak splat: >> >> unrefe

Re: [RFC] igmp: address pmc kmemleak from on igmpv3_del_delrec()

2017-02-06 Thread Cong Wang
On Fri, Feb 3, 2017 at 1:20 PM, Luis R. Rodriguez wrote: > When we igmpv3_add_delrec() we kzalloc the pmc, but when users > calligmpv3_del_delrec() we never free the pmc. This was caught > by the following kmemleak splat: > > unreferenced object 0x99666ff43b40 (size 192): > comm "systemd

[RFC] igmp: address pmc kmemleak from on igmpv3_del_delrec()

2017-02-03 Thread Luis R. Rodriguez
When we igmpv3_add_delrec() we kzalloc the pmc, but when users calligmpv3_del_delrec() we never free the pmc. This was caught by the following kmemleak splat: unreferenced object 0x99666ff43b40 (size 192): comm "systemd-resolve", pid 1258, jiffies 4309905600 (age 2138.352s) hex dump (f