diff options
author | Arjun Vynipadath <arjun@chelsio.com> | 2018-11-09 12:22:01 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-10 02:18:22 +0300 |
commit | 24357e06ba511ad874d664d39475dbb01c1ca450 (patch) | |
tree | e79c520ef8c56549d86ed8c88778c1e488f6ec24 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 2a8d84bf513823ba398f4b2dec41b8decf4041af (diff) | |
download | linux-24357e06ba511ad874d664d39475dbb01c1ca450.tar.xz |
cxgb4vf: fix memleak in mac_hlist initialization
mac_hlist was initialized during adapter_up, which will be called
every time a vf device is first brought up, or every time when device
is brought up again after bringing all devices down. This means our
state of previous list is lost, causing a memleak if entries are
present in the list. To fix that, move list init to the condition
that performs initial one time adapter setup.
Signed-off-by: Arjun Vynipadath <arjun@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions