Re: [Patch net] atm: fix a memory leak of vcc->user_back

2020-05-04 Thread David Miller
From: Cong Wang Date: Fri, 1 May 2020 11:11:09 -0700 > In lec_arp_clear_vccs() only entry->vcc is freed, but vcc > could be installed on entry->recv_vcc too in lec_vcc_added(). > > This fixes the following memory leak: > > unreferenced object 0x8880d9266b90 (size 16): > comm "atm2", pid

[Patch net] atm: fix a memory leak of vcc->user_back

2020-05-01 Thread Cong Wang
In lec_arp_clear_vccs() only entry->vcc is freed, but vcc could be installed on entry->recv_vcc too in lec_vcc_added(). This fixes the following memory leak: unreferenced object 0x8880d9266b90 (size 16): comm "atm2", pid 425, jiffies 4294907980 (age 23.488s) hex dump (first 16 bytes):